uni

University stuff
git clone git://git.margiolis.net/uni.git
Log | Files | Refs | README | LICENSE

randinput (194B)


      1 #!/bin/sh
      2 
      3 usage()
      4 {
      5 	echo "usage: ${0##*/} nthreads N" 1>&2
      6 	exit 1
      7 }
      8 
      9 test ${#} -ne 2 && usage
     10 echo ${1}
     11 echo ${2}
     12 strings -n 1 < /dev/random | grep -o '[[:digit:]]' | head -n$((${2} * ${2}))