Random Numbers from a List of Numbers

  • Thread starter Thread starter dls61721
  • Start date Start date
D

dls61721

Can anyone tell me how to generate random numbers from a
list of numbers? RANDBETWEEN doesn't help, it includes
numbers that I don't/can't use.

Thanks!
 
What's your list of numbers look like?
Assume your list was

1
3
5
8
10
12
16
20
30
40


in A1:A10

to get a random number from the above list


=INDEX(A1:A10,MATCH(INT(RAND()*(11-1)+1),{1;2;3;4;5;6;7;8;9;10},0))

or hard coded

=INDEX({1;3;5;8;10;12;16;20;30;40},MATCH(INT(RAND()*(11-1)+1),{1;2;3;4;5;6;7
;8;9;10},0))
 
Back
Top