Random Number Generator

P

Pascale

Is it possible to randomly generate an 8 alphanumeric string rather tha
just numeric string. Numbers and alpha order should also be random
purpose: trying to simulate password entries for test dat
 
N

N Harkawat

Type 0 thru 9 and A thru Z in cells A1 thru A43

Next on any cell type
=INDEX($A$1:$A$43,RANDBETWEEN(1,43))&INDEX($A$1:$A$43,RANDBETWEEN(1,43))&INDEX($A$1:$A$43,RANDBETWEEN(1,43))&INDEX($A$1:$A$43,RANDBETWEEN(1,43))&INDEX($A$1:$A$43,RANDBETWEEN(1,43))&INDEX($A$1:$A$43,RANDBETWEEN(1,43))&INDEX($A$1:$A$43,RANDBETWEEN(1,43))&INDEX($A$1:$A$43,RANDBETWEEN(1,43))

This is your 8 digit random password

For Randbetween you will need Analysis tool pak addin
 
O

olasa

Here is another way.

Put this in A1 (or give it a Name):
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz

Then copy this to A2:
=MID($A$1,1+INT(RAND()*LEN($A$1)),1)&MID($A$1,1+INT(RAND()*LEN($A$1)),1)&MID($A$1,1+INT(RAND()*LEN($A$1)),1)&MID($A$1,1+INT(RAND()*LEN($A$1)),1)&MID($A$1,1+INT(RAND()*LEN($A$1)),1)&MID($A$1,1+INT(RAND()*LEN($A$1)),1)&MID($A$1,1+INT(RAND()*LEN($A$1)),1)&MID($A$1,1+INT(RAND()*LEN($A$1)),1)

Ola Sandström
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top