What's the best way to generate a random number between 0 and 1? I'm not happy with how the MT object does it - seems that 40% of the numbers are between 0.7 and 1
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Well, MMF2 can handle decimals so... I'd say random(100) (or whatever the syntax is) multiplied by .001 (or divided by 100) makes sense. Can't try it though, don't have MMF2. It probably doesn't, because it seems too obvious... >_O
I actually made a random number testing thingy.. and it suggests that the random numbers are fine, with only a +/- 5% difference in what it should be after 10000 samples. Both the default MMF and the MT random have the same results.
Hmm.. I swear that the random number generator is messing with me. Maybe it's because I generate a number every second and seed it by time. Or something like that. I'm tempted to perform a hypothesis test, but it's not worth my time, unless someone complains to me about his character always getting hit in the leg or something
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.