#!/bin/rc
fn genpassword {
	head -n16 /dev/urandom | md5sum | cut -d' ' -f1
}

npass=5
if (test $#* -eq 2) {
	npass=$1
}

x=0
while (test $x -lt $npass) {
	genpassword
	x=`{expr $x + 1}
}
