LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Generate random numbers and survey results analysis

[ILUG] Generate random numbers and survey results analysis

Pádraig Brady P at draigBrady.com
Wed Jul 25 17:13:25 IST 2007


Patrick O'Connor wrote:
> Hi All,
> I'm trying to select winners from the pool of respondants from my recent
> Open Source / Free Software Developers and Users Survey.
> I was hoping to use the lnux rand() or srand() functions to randomly pick 8
> winners from a number range of 1 to 145 but my efforts have been fruitless
> so far.
> Does anyone have a script that I can use to accomplish this?

$ shuf -i 1-145 -n8
85
17
105
72
34
110
44
75




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell