Re: Generate random numbers with shuf

2013-07-10 Thread Pádraig Brady
On 07/11/2013 12:54 AM, Assaf Gordon wrote: > On 07/10/2013 09:20 AM, Pádraig Brady wrote: >> >> I've split to two patches. >> 1. Unrelated test improvements. >> 2. All the rest > > <...> > >> Note in both patches I made adjustments to the tests [...] > <...> >> I.E. avoid cat unless needed, and

Re: Generate random numbers with shuf

2013-07-10 Thread Assaf Gordon
On 07/10/2013 09:20 AM, Pádraig Brady wrote: I've split to two patches. 1. Unrelated test improvements. 2. All the rest <...> Note in both patches I made adjustments to the tests [...] <...> I.E. avoid cat unless needed, and paste is more general than fmt in this usage. <...> Also I sim

Re: Generate random numbers with shuf

2013-07-10 Thread Pádraig Brady
On 07/05/2013 10:43 PM, Assaf Gordon wrote: > > On 07/05/2013 12:12 PM, Pádraig Brady wrote: >> On 07/05/2013 07:04 PM, Assaf Gordon wrote: >>> Hello, > Regarding old discussion here: > http://lists.gnu.org/archive/html/coreutils/2011-02/msg00030.html > > Attached is a patch w

Re: Generate random numbers with shuf

2013-07-05 Thread Assaf Gordon
On 07/05/2013 12:12 PM, Pádraig Brady wrote: On 07/05/2013 07:04 PM, Assaf Gordon wrote: 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 wi

Re: Generate random numbers with shuf

2013-07-05 Thread Pádraig Brady
On 07/05/2013 07:04 PM, Assaf Gordon wrote: > Hello, > > On 07/04/2013 05:40 PM, Pádraig Brady wrote: >> On 07/04/2013 09:41 PM, Assaf Gordon wrote: >>> >>> Regarding old discussion here: >>> http://lists.gnu.org/archive/html/coreutils/2011-02/msg00030.html >>> >>> Attached is a patch with adds "-

Re: Generate random numbers with shuf

2013-07-05 Thread Assaf Gordon
Hello, On 07/04/2013 05:40 PM, Pádraig Brady wrote: On 07/04/2013 09:41 PM, Assaf Gordon wrote: 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

Re: Generate random numbers with shuf

2013-07-04 Thread Pádraig Brady
On 07/04/2013 09:41 PM, Assaf Gordon wrote: > 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 random numbers with shuf

2013-07-04 Thread Assaf Gordon
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 C