NOT LOGGED IN
NOTE: You are commenting as an anonymous guest. You will
NOT immediately see your comment, but it's there. Please do not try to re-send the same comment. If you'd like to see it immediately, please
login or create an account (
no worries, it's free).
Olympus
Engaged
You don't really need to change the variable names in that code snippet. The intMin = the minimum number to pass to the random number function, and the intMax is the maximum number to pass. If you were to change the type of variable to pass/return you would just change the parts that say 'integer', and you should keep them the same type for this particular thing, since the X & Y coordinates use the same type of variable.
You could either add all the code in a separate module, or since you're just making a real small app, just add it all into the main form. Put the Dim r stuff at the top in the Declarations section, and then the rest of the original code I pasted anywhere else in the main form's code. It's just a function you're going to be calling to generate the random numbers for you.
Then in the mouse hover event, do someth9ing along the lines of: