# Does anyone a Random Code

**URL:** <https://forum.kirupa.com/t/does-anyone-a-random-code/226341>\
**Category:** flash\
**Created:** [May 20, 2007, 2:49pm UTC](https://forum.kirupa.com/t/does-anyone-a-random-code/226341 "2007-05-20T14:49:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dannyvaughton](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@dannyvaughton](https://forum.kirupa.com/u/dannyvaughton)\
**Post date:** [May 20, 2007, 2:49pm UTC](https://forum.kirupa.com/t/does-anyone-a-random-code/226341/1 "2007-05-20T14:49:45Z")

</div>

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
