RAND() / RANDBETWEEN() FOR SPECIFIC ARRAY

  • Thread starter Thread starter FARAZ QURESHI
  • Start date Start date
F

FARAZ QURESHI

How can one derive a random number from a specifc array, for example a random
selection from {2, 4, 16, 256, 65536}
 
How can one derive a random number from a specifc array, for example a random
selection from {2, 4, 16, 256, 65536}

Try this formula

=CHOOSE(RANDBETWEEN(1,5),2,4,16,256,65536)

Hope this helps / Lars-Åke
 
Bernd P said:
=2^(2^INT(RND()*5))

Clever, I like it!

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 

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

Back
Top