Roblox's math.random works, but it isn't really random, is there any way I can achieve true random?
In order to achieve true randomization, simply use Random.new()
Random is the new way of finding completely random numbers.
using a variable for it, you can set it to use Numbers or Integers.
1 | local var 1 = Random.new() |
2 |
3 | var 1 :NextInteger(min,max) -- gives whole numbers only |
4 |
5 | var 1 :NextNumber(min,max) -- gives negatives,decimals,whole numbers, etc. |
Sources:
http://developer.roblox.com/en-us/api-reference/datatype/Random
http://devforum.roblox.com/t/a-random-feature/64517
http://devforum.roblox.com/t/math-randomseed-seemingly-broken/96945