|
| 09 Aug 2016 05:09 AM |
it seems to put priority to higher numbers.
|
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 09 Aug 2016 05:11 AM |
| use math.randomseed(tick()) at the top of your script |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2016 05:12 AM |
will that affect math.random(1818,475388269)? this is for a random place teleporter.
|
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Aug 2016 08:49 AM |
"it seems to put priority to higher numbers." No it doesn't. It looks that way, but it doesn't. It puts priority to higher DIGITS, not numbers.
A number with 10 digits has 900 million possibilities. A number with 5 digits has only 90 thousand possibilities. See why it would favor a 10 digit number over a 5 digit number?
|
|
|
| Report Abuse |
|
|
|
| 09 Aug 2016 08:57 AM |
For an example that is easier to understand (especially showing work), think of this. A one digit number ranges from 1 to 9. I'll leave out a plain "0" because it's not needed to understand. A two digit number ranges from 10 to 99.
1 to 9 includes 9 numbers. 10 to 99 includes 90 numbers. 100 to 999 includes 900 numbers.
That puts the total possibilities for a number between one and three digits at 999.
900/999 = ~90% of this will be three digit numbers. 90/999 = ~9% will be two digit numbers. 9/999 = ~0.9% will be a single digit.
|
|
|
| Report Abuse |
|
|
| |
|