This commit is contained in:
Erich Smith
2012-04-28 10:40:16 -04:00
parent e3011c5ead
commit 2086a053df

View File

@@ -33,7 +33,7 @@ pickfrom ()
[ -z "$file" ] && reference $FUNCNAME && return
length=$(cat $file | wc -l)
n=$(expr $RANDOM \* $length \/ 32768 + 1)
head -n $n $f | tail -1
head -n $n $file | tail -1
}
pass ()