#!/bin/bash if [ $# -lt 2 ] then echo "Usage: ./`basename $0` PAYLOADBITS STRENGTHBITS" exit 1 fi for i in $(seq 1 $(($1 * 2))) ; do echo `od -N $(($2 / 8)) -An -t x1 /dev/random | tr -d " \n"` ; done | xargs -n 2