If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
generating random numbers
Is there a way (or formula) to generate a random number in
a cell? If so, can I specify the range I want the random number to fall into, e.g., 1 through 6, 0 through 9, 1 through 20? Thanks. Roger |
#2
|
|||
|
|||
generating random numbers
Try
=INT(RAND()*20+1) or if you have ATP installed =RANDBETWEEN(1,20) -- Regards, Peo Sjoblom "Roger" wrote in message ... Is there a way (or formula) to generate a random number in a cell? If so, can I specify the range I want the random number to fall into, e.g., 1 through 6, 0 through 9, 1 through 20? Thanks. Roger |
#3
|
|||
|
|||
generating random numbers
Peo,
Great, this works! Thanks. Roger -----Original Message----- Try =INT(RAND()*20+1) or if you have ATP installed =RANDBETWEEN(1,20) -- Regards, Peo Sjoblom "Roger" wrote in message ... Is there a way (or formula) to generate a random number in a cell? If so, can I specify the range I want the random number to fall into, e.g., 1 through 6, 0 through 9, 1 through 20? Thanks. Roger . |
Thread Tools | |
Display Modes | |
|
|