04-01-2015 10:44 AM - edited 04-01-2015 10:46 AM
how can i generate two different number?The first must be always bigger than the second.
Solved! Go to Solution.
04-01-2015 10:50 AM
You may need to tell us what constraints apply to the first number. After generating the first number, use Increment to add 1 to it to produce the second number.
Lynn
04-01-2015 10:54 AM
Of course, Lynn meant "decrement" to make the second number smaller than the first, which makes the first bigger than the second ...
BS
04-01-2015 10:58 AM
Yes. I should read the posts more carefully.
Lynn
04-01-2015 10:58 AM
04-01-2015 11:04 AM
Here you go.
04-01-2015 11:21 AM - edited 04-01-2015 11:33 AM
Thx
Yes it's homework .i have to do operations with two random numbers.And the value cant be negative
04-01-2015 11:48 AM
sorry.I dont really understand what you say.i think i expressed myself wrong.So i have to generate two different random number.and the value cant be negative.So the first number must be always bigger than the second.
sorry but we started to learn labview few weeks ago
04-01-2015 12:22 PM
04-01-2015 12:26 PM
Only itegers or also fractional/decimal numbers? Any real range of values you can use?
I would just generate two numbers (based on whatever parameters you may have) and then use Max & Min to sort them.