Angharad has asked for the wisdom of the Perl Monks concerning the following question:
And I want to be able to write a perl script that will randomly select 3 of this files and print the contents of the remainder (i.e. the other 33 files) into one file like this-0.29 -0.39 -0.51 -0.65 -0.85 -1.07 -1.33 -1.66 -1.92 -2.11 -2.21
I want to be able to do this a number of times until all combinations have been covered ensuring that a particular 'three file combination' is only chosen once (of course any file can, on its own, be chosen a number of times, but only once in a particular combination of two other files ... make sense?).-0.29 -0.2 0.62 -0.82 -0.39 -0.25 0.79 -1.05 -0.51 -0.34 0.97 -1.35 -0.65 -0.46 1.15 -1.67 -0.85 -0.64 1.34 -2.07 -1.07 -0.86 1.57 -2.55 -1.33 -1.07 1.8 -3.05 -1.66 -1.33 2.05 -3.64 -1.92 -1.57 2.21 -4.28 -2.11 -1.77 2.23 -4.91 etc ... for 33 files
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: randomly selecting files
by inman (Curate) on Jul 29, 2005 at 10:40 UTC | |
|
Re: randomly selecting files
by blazar (Canon) on Jul 29, 2005 at 10:41 UTC | |
by anonymized user 468275 (Curate) on Jul 29, 2005 at 11:21 UTC | |
by blazar (Canon) on Jul 29, 2005 at 11:52 UTC | |
by anonymized user 468275 (Curate) on Jul 29, 2005 at 11:56 UTC | |
|
Re: randomly selecting files
by anonymized user 468275 (Curate) on Jul 29, 2005 at 11:29 UTC | |
|
Re: randomly selecting files
by Angharad (Pilgrim) on Jul 29, 2005 at 10:44 UTC | |
by Anonymous Monk on Jul 29, 2005 at 11:31 UTC | |
by blazar (Canon) on Jul 29, 2005 at 12:01 UTC |