Click here to Skip to main content
15,884,989 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i was wondering if there was any way to perform a action with a certain amount of chances. for a example:
i want action 1 performed with a chance 1 out of 5.
if any one can help, thank you!!!!!!!!!!!
Posted

1 solution

Use the Rnd function: http://w3schools.com/vbscript/func_rnd.asp[^]
The third example does close to what you want.
 
Share this answer
 
Comments
Uday P.Singh 4-Mar-12 11:56am    
5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900