If this is a procedure you will need to do on the same data set more than once, consider using the randomize statement before using rnd(1) ... I can't speak for MapBasic, but in the past with other languages have had trouble getting the same result every time I ran a procedure. I assume the randomize statement is available in MapBasic to address just this kind of problem.

-- Eric Johnson




Sarah Williams wrote:

Hello,

I have a table of 99769 records. I want to select out 200 of these at random. Is there a way of doing this automatically in MapInfo rather than generating a random number list and picking each record out manually? I am using version 8. The table has a column of unique numbers entitled ID.

Thanks for any help


_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to