|
| 21 Jun 2014 05:28 PM |
Is it possible, with math.random, to change the likelyhood of certain numbers returning?
Ie, if I had a line that said 'N = math.random(0, 360),' how would I make it so that the lower the number, the more likely it is to be chosen? |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 21 Jun 2014 05:30 PM |
You can't, but you can:
if math.random(0,1) == 1 then N = math.random(0,180) else N = math.random(0,360) end |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 06:16 PM |
| Thanks, that helps, actually. ^_^ |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 21 Jun 2014 06:17 PM |
I'm glad it did :)
I would appreciate it if you came to my place and donate some robux! Thanks! |
|
|
| Report Abuse |
|
|