01-11-2012 09:45 AM
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
Solved! Go to Solution.
01-11-2012 09:49 AM
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
01-11-2012 09:49 AM
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.
01-11-2012 01:39 PM
@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.