# Does anyone know a Random Code

**URL:** <https://forum.kirupa.com/t/does-anyone-know-a-random-code/226340>\
**Category:** flash\
**Created:** [May 20, 2007, 2:41pm UTC](https://forum.kirupa.com/t/does-anyone-know-a-random-code/226340 "2007-05-20T14:41:04Z")\
**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:41pm UTC](https://forum.kirupa.com/t/does-anyone-know-a-random-code/226340/1 "2007-05-20T14:41:04Z")

</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
