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

Home » Public Forums » archive » Re: Random ordering
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Random ordering [message #35529 is a reply to message #35528] Tue, 24 June 2003 13:14 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
trouble writes:

> Stuck again. I want to create an integer 1D array from 0 to n (n ~
> 100) so that the numbers are in jumbled up order so that "nearby"
> numbers, eg. ABS(difference) < 3, are "far" apart. I think there must
> be a nice way using MOD rather than bludging it with RANDOMU. Anyone
> got any suggestions?

What is you do, anyway, for a living, Trouble?

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: Random ordering
Next Topic: How to do nested objects??

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

Current Time: Fri Oct 10 09:58:12 PDT 2025

Total time taken to generate the page: 0.87715 seconds