Re: RNG Test: Code to generate Diehard file in Euphoria
- Posted by Steve Mosher <farq at KILN.ISN.NET> Feb 17, 2000
- 723 views
> Yes the RNG appears to be good for everyday purposes BUT p=.500000 for all > tests is the optimum. Consistant scores of p>=.9000 or p<=.10000 are not > good. > If the end objective of using the rand() function REQUIRES uniformly generated > random numbers the results I saw did not indicate Euphoria passed all of the > tests. > > Maybe RDS might like to weigh in and state the source and/or type of RNG that > is coded into Euphoria. From experience, don't use rand() for anything you need to be super-random -- no matter what language you're using. The best solution to an unsatisfactory level of randomness is to code your own. Hint: you can sample the time, but this is mostly only good for a seed, unless you do some interesting things to it. Have fun.