»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 04-26-2004, 05:47 PM   #1 (permalink)
Registered User
 
Join Date: Feb 2004
Location: Hartlepool, UK
Posts: 49
Fr4gm4n is on a distinguished road
Excel 2003.

Hi,
I need to generate a set of random numbers between 1-95 ( inc ), and I also want the option to vary the amount of numbers that are produced.
I looked in excel at the random number option without much success....it did produce a random set of numbers but produced the same set when ran again :/ ( probably more down to me not configuring it properly than anything else )
Someone did say there was a formula that would do it....but didn't know what it was
Anyone know how to do this?

Fr4gm4n is offline   Reply With Quote
Old 04-26-2004, 06:23 PM   #2 (permalink)
Registered User
 
jmichna's Avatar
 
Join Date: Oct 2001
Location: Chicagoland IL
Posts: 1,539
jmichna is on a distinguished road
Try this formula:
=RANDBETWEEN(1,95)

Per MS "If this function is not available, and returns the #NAME? error, install and load the Analysis ToolPak add-in."

Note, it might be =RANDBETWEEN(0,96)
__________________
A man becomes rich not by having what he wants, but by wanting what he haves.
jmichna is offline   Reply With Quote
Old 04-26-2004, 06:29 PM   #3 (permalink)
Registered User
 
jmichna's Avatar
 
Join Date: Oct 2001
Location: Chicagoland IL
Posts: 1,539
jmichna is on a distinguished road
Another way of doing it:
=RAND()*(95-1)+1

You may need to format cell to display only whole numbers.
__________________
A man becomes rich not by having what he wants, but by wanting what he haves.
jmichna is offline   Reply With Quote
Old 04-26-2004, 06:34 PM   #4 (permalink)
Registered User
 
Join Date: Feb 2004
Location: Hartlepool, UK
Posts: 49
Fr4gm4n is on a distinguished road
Cheers guys....I'll give that a go, thanks for the replies....quick as usual

Steve.
Fr4gm4n is offline   Reply With Quote
Old 04-27-2004, 04:00 PM   #5 (permalink)
Registered User
 
Join Date: Feb 2004
Location: Hartlepool, UK
Posts: 49
Fr4gm4n is on a distinguished road
Ok...used the randbetween(1,95)....worked ok, then I pasted the formula into the next 29 cells to give me 30 random numbers. Only small drawback to this is that it can generate the same number more than once in the set of 30, but since the amount of numbers is always less than 30 i have plenty to work with

Thanks jmichna

Steve.
Fr4gm4n is offline   Reply With Quote
Old 04-28-2004, 04:20 AM   #6 (permalink)
Registered User
 
jmichna's Avatar
 
Join Date: Oct 2001
Location: Chicagoland IL
Posts: 1,539
jmichna is on a distinguished road
Quote:
Originally posted by Fr4gm4n
...Only small drawback to this is that it can generate the same number more than once in the set of 30 ....
Steve,
Since the numbers are generated randomly, and you're doing 30 simultaneously, odds are you will see numbers duplicated in a given instance from time to time... this is by chance (random)
jmichna
__________________
A man becomes rich not by having what he wants, but by wanting what he haves.
jmichna is offline   Reply With Quote
Old 04-28-2004, 02:44 PM   #7 (permalink)
Registered User
 
Starfury_2260's Avatar
 
Join Date: Aug 2003
Location: KY
Posts: 1,092
Starfury_2260 is on a distinguished road
if there is some way to keep numbers out of the group to choose from i suppose you could have each cell excepting the number used by the cells above it. i'm sure you could probably write a long complex equation that would make all the numbers random AND different but that would take too long
__________________
Heatware: Starfury
Ebay feedback: starfury_2260
Starfury_2260 is offline   Reply With Quote
Old 04-28-2004, 03:31 PM   #8 (permalink)
Registered User
 
Join Date: Feb 2004
Location: Hartlepool, UK
Posts: 49
Fr4gm4n is on a distinguished road
Lol...cheers Starfury
Perhaps there is a long and complex formula and I hope it doesn't take you too long to compile it ....let me know when it's finished

Steve.
Fr4gm4n is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 07:09 PM.