04-01-2015 12:27 PM
04-01-2015 12:41 PM - edited 04-01-2015 12:43 PM
szabolcs,
That will not work per the requirements. You can still get random numbers so that the top number is 1 and the bottom is 19 (playing the worst case.
Here is the solution I am recommending.
04-01-2015 12:52 PM
already made it.THX
04-01-2015 05:13 PM
That will not guarantee that one number is greater than the other. Although unlikely, it is possible that both values could be the same.
Lynn
04-02-2015 10:11 AM
i expressed myself wrong .It's enough that the value isnt negative
04-02-2015 11:40 PM
how can i generate such numbers where the two number's remainder is 0?always
04-03-2015 06:09 AM
@szabolcs1295 wrote:
how can i generate such numbers where the two number's remainder is 0?always
I would generate two random numbers and then multiply them. Take either of the original numbers and the multiplication result.
04-03-2015 11:48 AM
@szabolcs1295 wrote:
how can i generate such numbers where the two number's remainder is 0?always
Unless you are dealing with integers, you are entering dangerous territory here.
So far you said that the numbers should be positive. What is the upper limit? Are fractional numbers allowed? Are the random number supposed to have a uniform probability distribution?
04-03-2015 03:24 PM
Apparently continued here. Please keep it all in one place!