Problems? Is your data what you think it is? | |
PerlMonks |
Wacky Happy Fun Genuine Coin Flipping Software OK!by PsionicMan (Beadle) |
on Jun 05, 2001 at 09:02 UTC ( [id://85696]=CUFP: print w/replies, xml ) | Need Help?? |
Well, this should really go under "Idiotic Uses for Perl that are entirely Overkill", but alas, there is no such section...
I was inspired, if you will, by Genuine Quantum Randomness. This uses the module described there.
Quite minimalistic. And slow. But it works. And it's random enough, I'd say. Update: fixed the problem that merlyn mentioned. Although the chances of the numbers being equal are kinda slim :) Another Update: With a bit of code suggested by saucepan, I've made it a bit simpler. More effective, too. Here it is:
--Psi
Back to
Cool Uses for Perl
|
|