coreutils
[Top][All Lists]
Advanced

[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

Attachment: shuf_random_numbers.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]