Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / September 2007

Tip: Looking for answers? Try searching our database.

Generate random numbers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cawhitaker - 14 Mar 2007 22:20 GMT
I want to generate 45 random numbers between the numbers 1 and 300.  I have
tried using RAND, RND, and a couple others.  I can get it to generate one
random number, but I want to generate more than one random number (45).  
Please help.
KC Rippstein hotmail com> <kcrippstein - 14 Mar 2007 22:25 GMT
From Excel help:

RANDBETWEEN  

Returns a random integer number between the numbers you specify. A new
random integer number is returned every time the worksheet is calculated.

If this function is not available, and returns the #NAME? error, install and
load the Analysis ToolPak add-in.
- 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.

Syntax

RANDBETWEEN(bottom,top)

Bottom   is the smallest integer RANDBETWEEN will return.

Top   is the largest integer RANDBETWEEN will return.

Example

Formula Description (Result)
=RANDBETWEEN(1,100) Random number between 1 and 100 (varies)
=RANDBETWEEN(-1,1) Random number between -1 and 1 (varies)


KC
Signature

Please remember to indicate when the post is answered so others can benefit
from it later.

> I want to generate 45 random numbers between the numbers 1 and 300.  I have
> tried using RAND, RND, and a couple others.  I can get it to generate one
> random number, but I want to generate more than one random number (45).  
> Please help.
James Silverton - 14 Mar 2007 22:26 GMT
cawhitaker  wrote  on Wed, 14 Mar 2007 14:20:53 -0700:

c> I want to generate 45 random numbers between the numbers 1
c> and 300.  I have tried using RAND, RND, and a couple others.
c> I can get it to generate one random number, but I want to
c> generate more than one random number (45).  Please help.

What's wrong with RANDBETWEEN even if the Excel random number
generator is not the greatest?

James Silverton
Potomac, Maryland

E-mail, with obvious alterations:
not.jim.silverton.at.comcast.not
ALee - 27 Sep 2007 21:01 GMT
Kind of late, but for the record.

Here is how I generated 9 random numbers from 0 to 0.1
=RAND()*0.1
This filled a cell with a random number.
Then I filled the column using the + in the lower right corner of the cell
dragging down.
I had 9 random numbers.

RANDBETWEEN(-1,1) gives positive and negative random numbers.

> I want to generate 45 random numbers between the numbers 1 and 300.  I have
> tried using RAND, RND, and a couple others.  I can get it to generate one
> random number, but I want to generate more than one random number (45).  
> Please help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.