Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^6: How do I make a random shuffle deterministic?

by LanX (Canon)
on Dec 05, 2012 at 17:53 UTC ( #1007350=note: print w/ replies, xml ) Need Help??


in reply to Re^5: How do I make a random shuffle deterministic?
in thread How do I make a random shuffle deterministic?

"rolfi" and "flori"?

just a guess: try multiplying each ord with a different prime (by position) and do a module biggest prime <256 before adding.

or start a new thread about efficient checksums! :)

UPDATE: the automatic seeding is quite efficient, so why don't you determine a unique seed at installation time from a random number.

Cheers Rolf


Comment on Re^6: 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://1007350]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (15)
As of 2015-07-02 19:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls