ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating random numbers

How to generate 10 random numbers between 5 and 10 ?

0 Kudos
Message 1 of 3
(2,701 Views)

Hi Laurentiu,

 


@Laurentiu3 wrote:

How to generate 10 random numbers between 5 and 10 ?


  1. generate one random number, between 5 and 10, by using either the Random function with some additional math or the improved RandomNumber function in LV2019
  2. repeat step 1 ten times using a loop

Both is very basic LabVIEW stuff: please take the self-paced online courses as they are offered for free until end of April!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,690 Views)

1. Generate a random number

2. multiply by 5

3. add 5

4. repeat

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 3 of 3
(2,654 Views)