# Small script required

Brief description of what I am looking to have created:

I am looking for someone to be able to create a php function for me (yes I'm just looking for a function) that can take three different numbers between a lower and higher limit, and return a true or false when the combination of three numbers falls into a winning set. The kicker of this is that these winning numbers can be offset by a defined amount.

So for example, three random numbers are generated between 0 and 15. The winning combination is 3,3,3. The three random numbers generated can be offset by up to three + or -. The function will check to see if the combination is a winner or not, and return true if it wins, false if not. To clarify further, because the winning numbers can be offset, each wheel might not necessarily be 3 but could still be a win. So for example, if the 3 random numbers generated were 4,3,3, then that is a winning set because the first wheel is offset by 1 but still within 3 offsets. 4,4,4 is a winner because there is a total of 3 offsets (1+ offset per each).

Features I would like for this are to be able to define how the amount I can offset each wheel by and to be able to set a min and max number for random numbers generated for each wheel. I'm not looking for an interface at all, I just want to be able to define these through the function use.

Taidot: PHP

( 2 reviews ) Toronto, Canada

Projektin tunnus: #493757

## Myönnetty käyttäjälle:

kYworks

(Updated) I have created the function, please check the webinterface of it: http://kyworks.110mb.com/index.php?wheel1=3&wheel2=4&wheel3=5&wheel1win=3&wheel2win=3&wheel3win=3&offsetamount=3 .. If you like the functionin Lisää

30 \$ USD 0 päivässä
(12 arvostelua)
2.9

## 11 freelanceria on tarjonnut keskimäärin 33 \$ tähän työhön

Hi, interesting job i m ready to do this...

30 \$ USD 0 päivässä
(0 arvostelua)
0.0
Robion

Hi ,I can do this 4 u ....

30 \$ USD 0 päivässä
(0 arvostelua)
0.0
Usmannajam

Can Give a chance .. Ready 4 this..

30 \$ USD 0 päivässä
(0 arvostelua)
0.0
Sauliusl

30 \$ USD 1 päivässä
(0 arvostelua)
0.0
sohagbuet

I can do it. I am a Computer engineer and a have 2 years of experience in this field. u can know me in http://sites.google.com/site/sohagbuetcse

30 \$ USD 1 päivässä
(0 arvostelua)
0.0

Hi, ready to do this job...

30 \$ USD 1 päivässä
(0 arvostelua)
0.0
khanzakir24

Hi, CAN DO THIS IN AN HOUR OR SO !!!

30 \$ USD 0 päivässä
(0 arvostelua)
0.0
rkioski

Hi, I dabbled something together as small sunday excercise. You can check it in http://sarkikoski.net/stuff/spin.php It's nothing special, does pretty much what you wanted and you can easily define the number of 'wheel Lisää

50 \$ USD 0 päivässä
(0 arvostelua)
0.0
arunkics

Yes, i can provide you the PHP function code with the requirement.

40 \$ USD 3 päivässä
(0 arvostelua)
0.0
usaEmployee

You have a separate file named winning_config.php where you can change offset values for any of the wheels or set the winning combination just by type. The change will be automatically placed in the game function as Lisää

30 \$ USD 0 päivässä
(0 arvostelua)
0.0