I am having difficulty using the RND function to randomly generate 10 numbers (1-10) to change the form and play a sound. I have used this code, but it does not seem to be working:
Ret = Int(10 * Rnd) +1)
If Ret=1 Then ChangeForm(Form15)
I have read the handbook, but it doesn’t seem to help my situation.
Does anyone have any suggestions to fix my code?