# Slot Machine -winner ratio question

**URL:** <https://forum.kirupa.com/t/slot-machine-winner-ratio-question/87637>\
**Category:** programming\
**Created:** [April 22, 2005, 1:48pm UTC](https://forum.kirupa.com/t/slot-machine-winner-ratio-question/87637 "2005-04-22T13:48:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eeeeevon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/eeeeevon/32/1266_2.png) [@eeeeevon](https://forum.kirupa.com/u/eeeeevon)\
**Post date:** [April 22, 2005, 1:48pm UTC](https://forum.kirupa.com/t/slot-machine-winner-ratio-question/87637/1 "2005-04-22T13:48:34Z")

</div>

Hello-  
First off-- I’m a beginner flasher-- I downloaded a tutorial on making a slot machine. The actionscript if pretty straight forward-- it’s set to random, which is cool- but I need to be able to make sure there are a certain number of winners per “pulls” (of the slot lever)… For example-- 3 winners for every 30 pulls or 3 winners an hour.  
Any help would be greatly appreciated.

here is the script:

LeftChip = random(3);  
tellTarget ("/LeftReel") {  
gotoAndStop(Number(/:LeftChip)+1);  
}  
CenterChip = random(3);  
tellTarget ("/CenterReel") {  
gotoAndStop(Number(/:CenterChip)+1);  
}  
RightChip = random(3);  
tellTarget ("/RightReel") {  
gotoAndStop(Number(/:RightChip)+1);  
}
