[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Generate random numbers with shuf
From: |
Assaf Gordon |
Subject: |
Generate random numbers with shuf |
Date: |
Thu, 04 Jul 2013 14:41:44 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130630 Icedove/17.0.7 |
Hello,
Regarding old discussion here:
http://lists.gnu.org/archive/html/coreutils/2011-02/msg00030.html
Attached is a patch with adds "--repetition" option to shuf, enabling random
number generation with repetitions.
Example:
to generate 50 values between 0 and 9:
$ shuf --rep -i0-9 -n50
Comments are welcomed,
-gordon
shuf_random_numbers.patch
Description: Text Data
- Generate random numbers with shuf,
Assaf Gordon <=
- Re: Generate random numbers with shuf, Pádraig Brady, 2013/07/04
- Re: Generate random numbers with shuf, Assaf Gordon, 2013/07/05
- Re: Generate random numbers with shuf, Pádraig Brady, 2013/07/05
- Re: Generate random numbers with shuf, Assaf Gordon, 2013/07/05
- Re: Generate random numbers with shuf, Pádraig Brady, 2013/07/10
- Re: Generate random numbers with shuf, Assaf Gordon, 2013/07/10
- Re: Generate random numbers with shuf, Pádraig Brady, 2013/07/10