Originally posted by ravenspoint
random numbers..
Collapse
X
-
Originally posted by r035198xI'd say the right tool for the right job. the standard generator is for testing small programs and writting school assignments. If you use it for a lotto system however, you better be loaded with cash.
However, most coding jobs fall between these extremes. Quick and dirty solutions to small problems some-one is prepared to pay a hundred bucks to fix.
Coding for a lottery system would be a grand job.Comment
-
Originally posted by ravenspointGranted.
However, most coding jobs fall between these extremes. Quick and dirty solutions to small problems some-one is prepared to pay a hundred bucks to fix.
Coding for a lottery system would be a grand job.Comment
-
Originally posted by ravenspointCoding for a lottery system would be a grand job.
capable of generating a reasonable length series of uniform distributed pseudo
random numbers. The 'standard' rand() isn't one of them but that's all.
JosComment
-
The last three posts in this thread have been deleted as they had turned into a personal conflict and hijacked the thread. This does not in any way help the original poster and is not allowed in the development forums.
Please remember the OP when discussing solutions in a thread.
ADMINComment
-
Originally posted by ravenspointThat is so harsh!
In fact the standard generator is free, widely available and well understood. These are important benefits not shared by a home brewed generator. They are so important benefits, that I would suggest using the standard generator, unless someone can show a very good reason why it would be the wrong choice.
If you routinely reseed the generator from the least significant digits of the system clock, then the standard generator serves perfectly for a huge number of the common purposes.
Originally posted by ravenspointThe classic example is selecting a wait time before again requesting a shared resource that is currently busy. It is does not matter what wait time is selected, just that it be 'random'. Obscure flaws in the statistical behaviour of the standard generator over long runs are irrelevant - if you have to back-off more than 2 - 3 times your system has problems that will not be solved with a 'better' generator.Comment
Comment