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

Re: rand() function on Windows systems

by ikegami (Patriarch)
on Jan 03, 2017 at 17:03 UTC ( [id://1178864]=note: print w/replies, xml ) Need Help??


in reply to rand() function on Windows systems

If you want a specific sequence from rand, override *CORE::GLOBAL::rand with a sub that returns the series you wish to receive.

BEGIN { my @seq = ...; *CORE::GLOBAL::rand = sub { shift(@seq) }; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found