]> git.lizzy.rs Git - plan9front.git/blobdiff - rc/bin/valley
newt: pipe output of h comnmand through $pager
[plan9front.git] / rc / bin / valley
index 411da6a6e689bb1ce44b4275f253e9ea2d11b4a4..4cb11b266688c7a020b13f76f680dd1352e58b8d 100755 (executable)
@@ -15,7 +15,7 @@ len=split (phrases, phrase, /\n/)
   split ( $0, parts, /,/)
   for (i=1; i<length(parts); i++) {
     printf "%s", parts[i]
-    ind = int(rand * len)
+    ind = 1+int(rand * 1000)%len;
     printf "%s", phrase[ind]
   }
 print parts[i]