ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Random Numbers (https://www.excelbanter.com/excel-worksheet-functions/139191-random-numbers.html)

krisinvincible

Random Numbers
 
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


Barb Reinhardt

Random Numbers
 
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





"krisinvincible" wrote:

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


Stan Brown

Random Numbers
 
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).

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/


All times are GMT +1. The time now is 07:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com