Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Random Numbers

by Bod (Parson)
on Feb 10, 2024 at 22:30 UTC ( [id://11157646]=note: print w/replies, xml ) Need Help??


in reply to RE: RE: RE: Re: Random Numbers
in thread Random Numbers

A popular way is from timing events, such as a user's input into the keyboard. (It's generating the seed that is a real issue.) Using good old unreliable human input works quite nicely :)

That reminds me of some Javascript I wrote nearly 30 years ago.

I wanted to display one of 3 images randomly. So, the image was dependent on when the script loaded. 0-19 seconds past the minute for one image, 20-39 seconds for the next, etc.

On the same site, we had a gallery of nearly 100 (probably uncompressed) images - how slow must that have been on 33k dialup!!! Because I figured people wouldn't scroll to the bottom, I arranged that every hour the bottom image got moved to the top to ring the changes.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2026-04-18 20:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.