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

Home » Public Forums » archive » more for-loops vs. arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
more for-loops vs. arrays [message #19345] Wed, 08 March 2000 00:00
reardonb is currently offline  reardonb
Messages: 16
Registered: December 1999
Junior Member
I also have a For-loop vs. array question.
I want to fill an array with a random sequence of
1's and 0's. This works:

array1 = intarr(5,4)
for I=0,4-1 do begin
for II=0,5-1 do begin
array1[II,I] = round(randomu(s))
endfor
endfor

but can I do it without for loops?
Thanks.
-Brian


Sent via Deja.com http://www.deja.com/
Before you buy.
[Message index]
 
Read Message
Previous Topic: Re: How do you get rid of for-loops with arrays #2
Next Topic: Re: Help with Object graphics

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

Current Time: Fri Oct 10 09:39:44 PDT 2025

Total time taken to generate the page: 1.04021 seconds