random sequence of numbers

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

How do I generate a random sequence of numbers? e.g.
simulating pulling the numbers 1 through 25 out of a hat.
 
One way:

Put the numbers 1 through 25 in A1:A25. Put this in B1 and copy down
to B25:

=RAND()

Select any cell in the A1:B25 and choose Data/Sort. Sort on column B
(ascending or descending, doesn't matter) with no headers. If you
need to save the sequence copy A1:A25 to a different location.

Since RAND() will recalculate after the sort, you can get another
random sequence by choosing Data/Sort again.
 
Caveat:

Since RandBetween() will produce duplicates within a data set, it
doesn't meet the OP's criterion of "simulating pulling the numbers 1
through 25 out of a hat"
 
put the numbers 1 to 25 in column A.

next to them put the formula

=rand()

then sort both columns using the column with the formula as a key.

This will give you a rand pick of the 25 numbers.
 
Back
Top