Nemo's bash challenge for the day

Martijn van Oosterhout kleptog at svana.org
Sun Mar 31 12:26:46 EST 2002


On Fri, Mar 29, 2002 at 10:14:17AM +1100, Michael Still wrote:
> PS: How good is the bash random? See the attachment output.count for a
> summary of 100,000 numbers between 1 and 10 being generated with the
> default seed. It's probably good enough for most people.

> 1: 9964
> 2: 10009
> 3: 9978
> 4: 10015
> 5: 9997
> 6: 10020
> 7: 10011
> 8: 10008
> 9: 10006
> 10: 9992

You do realise that if they were all exactly 10,000 that would be a definite
sign of non-randomness!
-- 
Martijn van Oosterhout <kleptog at svana.org>   http://svana.org/kleptog/
> Ignorance continues to thrive when intelligent people choose to do
> nothing.  Speaking out against censorship and ignorance is the imperative
> of all intelligent people.




More information about the linux mailing list