LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to fill array with random number?

I need to fill a 3-dimensional array that has user-controlled dimension sizes with random numbers (1-10). I'm unsure of how to do this. I feel like I have to use the initialize array and maybe the build array functions somehow but I'm not entirely sure. Any help would be appreciated. Thanks.

0 Kudos
Message 1 of 5
(13,068 Views)

Random number function inside 3 nested For Loops.  Auto-indexing turned on at each of the tunnels.

 

Controls wired to the N terminals for the user controlled dimensions.

 

Initialize array and build array are not needed.

0 Kudos
Message 2 of 5
(13,063 Views)

Something like this

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 5
(13,052 Views)

I think raven is right ... THis is what he is proposing

0 Kudos
Message 4 of 5
(13,035 Views)

And I already proposed Smiley Wink Smiley Wink Smiley Wink

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 5 of 5
(13,032 Views)