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

Home » Public Forums » archive » Re: random integers between 0 and 1,000,000
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 integers between 0 and 1,000,000 [message #45971 is a reply to message #45968] Sat, 22 October 2005 19:44 Go to previous messageGo to previous message
steven.leopardi is currently offline  steven.leopardi
Messages: 2
Registered: October 2005
Junior Member
Not sure why you're getting negative values here, randomu gives numbers
between 0 and 1..., but try this

weights = long(1000000*RANDOMU( seed, 30 ))
help,weights
print,weights

WEIGHTS LONG = Array[30]

849159 15356 438991 564245 872939 652027
127233 367133 577606 326948 279024 421151
564968 521128 605257 133419
512581 827491 231006 287929 870252
26568 630852 541590 872538 240737 513706
184865 955750 911741

RPF
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Problem: Opening a 20-30MB sized ShapeFile
Next Topic: Keeping Button Pressed In?

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

Current Time: Fri Oct 10 05:10:40 PDT 2025

Total time taken to generate the page: 0.00312 seconds