Does anyone know a Random Code

Hello,

I am creating a simple fishing game, I have a fisherman, when you click him he will cast a line into the screen, he is now fishing. On the next frame is an animation of him catching a fish.

I need a code basically saying every secound theres a 1/100 chance of catching a fish, or in this case going to the next frame.

If any one could please help me it would be much apprieciated, if you can’t do exactly what a wrote above, any comments or suggestions would help, at least its a start.

Thanks
Danny