LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

random Number

Solved!
Go to solution

Hi

 

i want to build application to get random number between  200 to 250

 

how can i do that in labview

 

nots i have labview 9

 

thanks

0 Kudos
Message 1 of 4
(2,581 Views)

The random number generator in the Numeric palette generates a number between 0 and 1.  Read the help for details.  Take that number and do some math to get what you want.

 

Lynn

0 Kudos
Message 2 of 4
(2,578 Views)
Solution
Accepted by topic author Elyan_wisam

The random number function in LabVIEW generates a number between 0 and 1.  Multiply it by 50 and then add 200 to it.  If you need only integers, then convert it to an integer at the end.

Randall Pursley
0 Kudos
Message 3 of 4
(2,577 Views)

@rpursley8 wrote:

The random number function in LabVIEW generates a number between 0 and 1.  Multiply it by 50 and then add 200 to it.  If you need only integers, then convert it to an integer at the end.


Note that the distribution may not be even if you do this.

 

See this LAVA post regarding the development of the OpenG Random Number Within Range function.

 

Message 4 of 4
(2,543 Views)