Random Numbers

K

krisinvincible

Hi Guys,

How to generate 2 random numbers at the same time whose difference lies in a
given range.

For example,
generate a set of 2 random numbers a,b such that .45 <= (b-a) < = .60
 
B

Barb Reinhardt

I can help you come up with a random # that is between the two, but you'll
have to figure out how to get a difference between .45 and .60

You'll have to enable the Analysis Tool Pack

On the Tools menu, click Add-Ins.
In the Add-Ins available list, select the Analysis ToolPak box, and then
click OK.
If necessary, follow the instructions in the setup program

You can use =RANDBETWEEN(45,60)/100
 
S

Stan Brown

Mon, 16 Apr 2007 17:36:00 -0700 from krisinvincible
Hi Guys,

How to generate 2 random numbers at the same time whose difference lies in a
given range.

For example,
generate a set of 2 random numbers a,b such that .45 <= (b-a) < = .60

Hint: generate a, then generate b as a + .45 + (random 0 to .15).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top