|
| 21 Jun 2017 10:04 AM |
I want to have a different number every time math.random() generates a different number, not the same number everytime like math.randomseed(tick()) or math.random()
Any help? |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 10:10 AM |
| I think you could send an #### request to ########### but I've never done that so I can't tell you how to do it :( |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 10:11 AM |
google random number generator. It's the first web result
|
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 11:22 AM |
http://wiki.roblox.com/index.php?title=Random_numbers
|
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 11:38 AM |
if u put math.randomseed(tick()) at the top of your script, once; the resulting list will truly be random.
Want more random: Do what electronic slot machines do: Be constantly pulling randoms from the list in the background. When Player calls for a random at some random time; truly random....
while wait(.1) a = math.random() end
|
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 12:49 PM |
I already put randomseed(tick()) at the top, i did this:
math.randomseed(tick())
Part = game.workspace.Part x = math.random(1,100) z = math.random(1,100) boxChance = math.random(1,100)
while wait() do print(Part,x,z,boxChance) end
and the output was this:
Part 25 28 84 (x109) |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 01:12 PM |
It doesn't work that way. You need to pick a random number each time or of course they'll all be the same.
math.randomseed(tick())
while wait() do Part = game.workspace.Part x = math.random(1,100) z = math.random(1,100) boxChance = math.random(1,100) print(Part,x,z,boxChance) end
|
|
|
| Report Abuse |
|
|
| |
|