Home »
Public Forums »
archive »
Anyone got a combination function?
Anyone got a combination function? [message #5769] |
Tue, 13 February 1996 00:00 |
f055
Messages: 29 Registered: April 1995
|
Junior Member |
|
|
Hi.
I was just wondering if any one has written an IDL combination function?
i.e., to return a random list of 'r' elements (or their indexes) from 'n'
objects available. For example, if I have 100 stations, and I want to
choose 10 of them at random, but without repitition, then the function
should return a list of 10 random unique station numbers.
Should be simple to write, but it's time to go home.
Cheers.
......................... Dr Tim Osborn . t.osborn@uea.ac.uk
.... ___/.. __ /.. /.. /. Senior Research Associate . phone:01603 592089
... /..... /. /.. /.. /.. Climatic Research Unit . fax: 01603 507784
.. /..... __/.. /.. /... School of Environmental Sciences.
. /..... /\ ... /.. /.... University of East Anglia .
____/.._/..\_..____/..... Norwich NR4 7TJ .
......................... UK .
|
|
|
Current Time: Wed Oct 08 18:06:58 PDT 2025
Total time taken to generate the page: 0.00463 seconds