Link to home
Start Free TrialLog in
Avatar of andieje
andieje

asked on

Powerpoint 2003 VBA - obtaining 5 random numbers

Hello

In VBA, how can I obtain 5 random numbers from a range. Lets say the range is 1-50, I want to get 5 numbers at random from this range and each number picked must only occur once.

4, 45, 23, 16, 12 = ok

4, 45, 12, 23, 12 = not ok as 12 is repeated

Thanks
Avatar of John Wilson
John Wilson
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER CERTIFIED SOLUTION
Avatar of John Wilson
John Wilson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial