|
-
Aug 30th, 2005, 06:56 PM
#3
Thread Starter
Frenzied Member
Re: "True Random" Number Generator
 Originally Posted by jmcilhinney
That sure does seem random. I guess for a situation that really does require true random numbers then something like this is the way to go, but Integer.MaxValue different psuedo-random sequences created from a seed that is not directly controlled by the user or developer would be random enough for all but the most demanding cases. I do have a small criticism of your code too. The use of non-descriptive variable names means you need to study the code for a while to determine exactly what it is doing. More descriptive variable names would make it a lot easier to understand. Otherwise, most goodly and excellentful. 
Thanks alot Jm,
i wouldn't say most demanding cases, if randomness is a main part of your application, as i mentioned an mp3 player, it can be a big issue. Of course when random is only used a small amount of times it is no problem to use stock standard methods.
Apologies for the cryptic variable names, i may review that and repost, i should have cleaned it up before i posted it
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
|