How good are bash random numbers anyway

    How good are these random numbers anyway? I generated 100,000 random numbers between 1 and 10, and then had a look at their frequency:

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


    I would say that this is probably close enough to random for most users.

posted at: 04:00 | path: /bashrand | permanent link to this entry