Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How do I make a random shuffle deterministic?

by Anonymous Monk
on Dec 07, 2012 at 03:14 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1007677]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-19 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found