ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Unique Random Numbers (https://www.excelbanter.com/excel-programming/409993-unique-random-numbers.html)

Joe Schmo

Unique Random Numbers
 
I'm looking for a way to generate a list of "unique" random numbers from 1
to x.

For example I have a list of students and would like to randomly scramble
that list. The number of students changes so I need the ability to idicate
the number of students.



Thanks in advance


Jim Cone[_2_]

Unique Random Numbers
 

You don't need programming code.
Enter "=Rand()" in an adjoining column and fill down.
Sort both columns using the rand column as the key.

Or give my free workbook "Special Randoms" a try.
You can download it from... http://excelusergroup.org/
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Joe Schmo"
wrote in message
I'm looking for a way to generate a list of "unique" random numbers from 1
to x.
For example I have a list of students and would like to randomly scramble
that list. The number of students changes so I need the ability to idicate
the number of students.
Thanks in advance


Bernd P

Unique Random Numbers
 
Hello,

You can take my UDF UniqRandInt:
http://www.sulprobil.com/html/uniqrandint.html

Regards,
Bernd


All times are GMT +1. The time now is 10:33 AM.

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