#!/bin/bash size="$1" # These two program suse the same algorithm, but fast-pseudorandom # is in C and is much faster than lcgrng, which is in Python. if type -path fast-pseudorandom > /dev/null 2>&1 then fast-pseudorandom --bytes "$size" --seed 0 else ./lcgrng --bytes "$size" --seed 0 fi