Random Whole Number Functions

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

In cell A1, I have an INT(RAND) formula to produce a random whole number.

In cell B1, I want another random whole number to be produced, but I don't
want it to be equal to the number generated in cell A1. Is there a way to
specify that in the INT(RAND) formula?
 
Hi,

First you might consider using =RANDBETWEEN(1,100) instead of the
=INT(RAND()). However, that doesn't help with regards to generating unique
numbers.
 
Hi,

Here is a way to make them unique:

in cell B1 enter =RANDBETWEEN(1,100)
in cell B2 enter:
=RANDBETWEEN(MAX(B$1:B1),MAX(B$1:B1)+B1)
fill this down.

Adjust this for your range.
 
Back
Top