Numbers random generator (10000+)

I need to create 10000+ random numbers to include in a mysql database and I'd like to know if exist a software (windows or mac) that allow me to do it automatically.

I've found this software but it's very expensive:
http://www.binarymark.com/Products/PasswordGenerator/default.aspx

Does anyone know alternatives, other software? 1Password include this features?
Thanks

Comments

  • MrC
    MrC
    Volunteer Moderator

    From the mac's command line (Terminal, or equivalent), you can use Perl:

    perl -e 'print int( rand(2**32)), "\n" for (1..10000);'
    

    Change what's inside the rand() function to change the range of random numbers produced. Change the 10000 to the number of integers you need.

    Redirect to a file if you want:

    perl -e 'print int( rand(2**32)), "\n" for (1..10000);' > my_random_digits
    

    If you need cryptographically secure digits, that can be accommodated too.

This discussion has been closed.