Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Generate 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Generate random numbers

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
--
Please remember to indicate when the post is answered so others can benefit
from it later.


"cawhitaker" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 182
Default Generate random numbers

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Generate random numbers

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.



"cawhitaker" wrote:

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generate Random numbers from a pre-defined set frankjh19701 Excel Worksheet Functions 0 January 11th 07 05:20 PM
Generate Numbers (not random) Like a counter Lloyd Excel Discussion (Misc queries) 2 September 6th 06 01:50 PM
generate unique random numbers Stephen Larivee New Users to Excel 7 March 29th 06 01:04 AM
How to generate a bunch of random numbers??? ddawg09 Excel Discussion (Misc queries) 6 March 13th 06 01:33 AM
generate random numbers Jules Excel Worksheet Functions 6 November 2nd 04 05:57 PM


All times are GMT +1. The time now is 12:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"