diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-01-28 03:54:17 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-01-28 03:54:17 +0100 |
commit | 2eb678a7b5b62415d9dcb0b1c8ed095ea7339f60 (patch) | |
tree | 4931b091695fcd18be145c332fb7db32286eb913 /rc | |
parent | 115e5f88ed22c352dcf5a18b45a376ca8923a36d (diff) |
valley: fix random numbers
Diffstat (limited to 'rc')
-rwxr-xr-x | rc/bin/valley | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rc/bin/valley b/rc/bin/valley index 39402351c..4cb11b266 100755 --- a/rc/bin/valley +++ b/rc/bin/valley @@ -8,7 +8,6 @@ phrases=", like,\ , for sure," len=split (phrases, phrase, /\n/) -len=len+1 } @@ -16,7 +15,7 @@ len=len+1 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] |