Ruby Random
Posted: Sat Aug 17, 2013 10:24 pm
Have replaced a green random set up using simply
=rand(100) or =rand(0..100)
Seems to work great, but i don't know how ruby is actually "doing it"
My question is..should i build it like the green set up that I use now,
that gets a new seed based on the current time???
...will "new.seed" make it better, or time displacement???
or is ruby already doing these things to a certain extent with just =rand(100) or =rand(0..100) ???
so maybe just leave it as it is???
Proper random was a interesting issue back at SM....
....has anyone already gone down this path in Ruby....?
=rand(100) or =rand(0..100)
Seems to work great, but i don't know how ruby is actually "doing it"
My question is..should i build it like the green set up that I use now,
that gets a new seed based on the current time???
...will "new.seed" make it better, or time displacement???
or is ruby already doing these things to a certain extent with just =rand(100) or =rand(0..100) ???
so maybe just leave it as it is???
Proper random was a interesting issue back at SM....
....has anyone already gone down this path in Ruby....?