Skip to content

Instantly share code, notes, and snippets.

@benhosmer
Created April 29, 2012 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benhosmer/2549087 to your computer and use it in GitHub Desktop.
Save benhosmer/2549087 to your computer and use it in GitHub Desktop.
A BASH script to generate 100 random numbers using the Quantum Random Number Generator, and write them to a file.
#!/bin/bash
# This script requires the Quantum Random library https://github.com/lmacken/quantumrandom
# Use pip: pip install quantumrandom http://pypi.python.org/pypi/quantumrandom
for i in {1..100};
do qrandom --int --max 1 --min 1000 >> 100-numbers.txt;
done;
echo "Complete!";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment