Random Numbers

  • Thread starter Thread starter ed
  • Start date Start date
E

ed

Does any have any code for generating random numbers and
then input them in a cell?
 
Ed,

You can use the Rnd function to return a random number. For
example,

Dim Rng As Range
For Each Rng In Range("A1:A10")
Rng.Value = Rnd
Next Rng



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

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

Similar Threads

Random Number 2
random numbers 7
Produce Random Numbers 6
random number generation help 3
Non Uniform Random Number Generator 2
Six columns randon no.'s no dupes 6
Unique Random Numbers 27
RAND() function error? ## 6

Back
Top