Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Random numbers generator

by mirod (Canon)
on Feb 07, 2001 at 19:41 UTC ( #56974=note: print w/ replies, xml ) Need Help??


in reply to Re: Random numbers generator
in thread Random numbers generator

It is just going to be a lot more difficult to ensure that if you run it on different machines it returns different results ;--)

Maybe putting the result in an LWP accessible place, retrieving them and doing:

my $random = int rand 10 while (($random != $previous_result1) && ($ra +ndom != $previous_result2)); print LWP_ACCESSIBLE $random;

Or maybe the problem was not exactly properly stated...


Comment on Re: Re: Random numbers generator
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-09-24 04:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (245 votes), past polls