home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
- From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
- Subject: Re: randomize.c
- Message-ID: <9224509.16563@mulga.cs.mu.OZ.AU>
- Sender: news@cs.mu.OZ.AU
- Organization: Computer Science, University of Melbourne, Australia
- References: <Btrt40.G6o@zardoz> <Bts28y.DJA@rahul.net> <AAS.92Aug31133620@rosmer.nr.no>
- Date: Mon, 31 Aug 1992 23:15:32 GMT
- Lines: 14
-
- aas@rosmer.nr.no (Gisle Aas) writes:
-
- >Why not: perl -e '@l=<>;print splice(@l,rand($#l),1) while @l'
-
- Because it's not random?
-
- Try
- perl -e 'srand;@l=<>;print splice(@l,rand($#l),1) while @l'
-
- --
- Fergus Henderson fjh@munta.cs.mu.OZ.AU
- This .signature virus is a self-referential statement that is true - but
- you will only be able to consistently believe it if you copy it to your own
- .signature file!
-