Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How do I make a random shuffle deterministic?

by Anonymous Monk
on Dec 07, 2012 at 03:14 UTC ( #1007677=note: print w/ replies, xml ) Need Help??


in reply to How do I make a random shuffle deterministic?

If your application relies on something random, provide your own random number generator. And do not consider using /dev/random as a source of random numbers for any game. Using /dev/random as a means of finding a seed for a random number generator is fine. As long as your program only requires one seed. There are lots of fast, not great random number generators out there. Use on of those for your game.

I think the UUID will provide you the seed you want. There are Perl means of generating UUIDs that come from CGI requests and others.


Comment on Re: How do I make a random shuffle deterministic?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007677]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-07-13 18:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (251 votes), past polls