comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Anyone got a combination function?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Anyone got a combination function? [message #5769] Tue, 13 February 1996 00:00
f055 is currently offline  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 .
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: FAQ for IDL?
Next Topic: FAQ for IDL?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:06:58 PDT 2025

Total time taken to generate the page: 0.00463 seconds