|
-
Aug 30th, 2005, 03:40 PM
#6
Re: Generate a random number
 Originally Posted by taxes
Hi,
This subject has been discussed many times in this forum and is already in the codebank. You guys are making it too complicated and the problem with the complicated approach is that you often get the same sequence every time you switch the computer on. The random function is as random as anyone will ever require.
I just created one which does not follow the same pattern every time, i ran a test, two instances of my new class, two instances of the old.. of course, the old one, which accepts a seed and follows a pattern from then on returned two identical lists.. and mine returned two different lists, i think that hits the nail on the head.. i'll check out the ones already in codebank before i post up
Last edited by Phill64; Aug 30th, 2005 at 04:03 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|