Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 124
Default Random number generation - with no repeats

I want to generate a list of random numbers (36,000 of them) such that no two
are alike. I know how to do the random part [=RAND()*(b-a)+a] for random
numbers between a and b. Do you know how to ensure no two are alike?

I'm currently using the following formula

=ROUND(RAND()*(36000-0)+0,0)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Random number generation - with no repeats

Have two columns. First column Contains the random number. Next column has
the numbers 1 to 36,000. Then sort by the random numbers. The number 1 to
36,000 wil be now be random.

"Ryan" wrote:

I want to generate a list of random numbers (36,000 of them) such that no two
are alike. I know how to do the random part [=RAND()*(b-a)+a] for random
numbers between a and b. Do you know how to ensure no two are alike?

I'm currently using the following formula

=ROUND(RAND()*(36000-0)+0,0)

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Random number generation - with no repeats

In A1 thru A36000 enter 1 thru 36000. In B1 thru B36000 enter:

=RAND()

Sort cols A & B by col B. This will "shuffle" the values in column A. If
you want 5 sample with no repeats, just pick the top 5 in column A. If you
want 10 samples with no repeats, just pick the top 10 in column A.......etc.
--
Gary''s Student - gsnu200784


"Ryan" wrote:

I want to generate a list of random numbers (36,000 of them) such that no two
are alike. I know how to do the random part [=RAND()*(b-a)+a] for random
numbers between a and b. Do you know how to ensure no two are alike?

I'm currently using the following formula

=ROUND(RAND()*(36000-0)+0,0)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,549
Default Random number generation - with no repeats


The free "Special Randoms" workbook will do that.
Enter minimum and maximum numbers allowed and set size.
Numbers added to a new workbook - copy and paste where you want.
No registration required. Download from the Products page at my website ...
http://www.realezsites.com/bus/primitivesoftware
--
Jim Cone
Portland, Oregon USA
(Excel Add-ins / Excel Programming)



"Ryan"
wrote in message
I want to generate a list of random numbers (36,000 of them) such that no two
are alike. I know how to do the random part [=RAND()*(b-a)+a] for random
numbers between a and b. Do you know how to ensure no two are alike?
I'm currently using the following formula

=ROUND(RAND()*(36000-0)+0,0)
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
random number generation Ahmad Excel Discussion (Misc queries) 3 November 6th 06 06:27 PM
random number generation scotjo Excel Worksheet Functions 4 January 9th 06 04:06 PM
random number generation DSpec Excel Worksheet Functions 7 October 3rd 05 01:41 PM
I need help with random number generation David Stoddard Excel Worksheet Functions 10 March 28th 05 07:06 AM
random number generation kurtrambis Excel Worksheet Functions 1 November 1st 04 09:23 PM


All times are GMT +1. The time now is 04:06 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"