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

Home » Public Forums » archive » Random selection
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
Random selection [message #51256] Sat, 11 November 2006 04:59 Go to next message
Julio[1] is currently offline  Julio[1]
Messages: 52
Registered: May 2005
Member
Hello there...

I have a simple question (I guess...).
I have an array with two columns and a thousand of rows. Each row has a

pair of latitude and longitude.


Array=floatarr(2, 1000)


-27.3456 -54.6529
-23.4546 -56.7263
... and so on...


I need to retrieve only 100 pairs, randomly. How can I do that?
Any comments welcome!
Julio
Re: Random selection [message #51316 is a reply to message #51256] Tue, 14 November 2006 07:39 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
I hadn't realised this is such an interesting problem... thanks for
that. Are you using this for something?

regards,
Greg
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: containers with iterators
Next Topic: I found one thing!!!

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

Current Time: Wed Oct 08 19:30:44 PDT 2025

Total time taken to generate the page: 0.00535 seconds