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

    Add a comment to this post:

    Your name:

    Your email: Email me new comments on this post
      (Your email will not be published on this site, and will only be used to contact you directly with a reply to your comment if needed. Oh, and we'll use it to send you new comments on this post it you selected that checkbox.)


    Your website:

    Comments: