Help with lottery style system?


Posted on 16th Feb 2014 07:03 pm by admin

I'm working on a currency system for forums and it is going to have a type of lottery system built into it. Trying to figure out the best way to make the drawings work. I'm still new to cron jobs but will have to figure out how to set them up to draw the numbers every hour.

What I need to do is figure a way to make it draw 3 random numbers, which will be the ticket number. They need to be a number between 1-36 and cannot pick the same number twice.

Did you know?Explore Trending and Topic pages for more stories like this.
Any ideas to what would be the best way to go about doing this?

Thanks!
No comments posted yet

Your Answer:

Login to answer
238 Like 52 Dislike
Previous forums Next forums
Other forums

Date Format
Hi there,

I have a date format like this right now:
Sat, 17 Oct 2009 17:04:00

I ne

Remove directories not empty
hi,
i have an array that contains some names (1,4,6,56...). Every integer is a name of a folder.<

Problem with "dynamic" index page
Hi. I have one question. In my index.php page I have this kind of code:
Code: // listaa sivut

Select Rows as Columns..
is there a way to select COLUMN_NAME from user_tab_columns where table_name='TABLENAME';
and ha

Undefined offset when using a flat file with pipe symbols
Hi, I've got a flat file/text file which I'm currently using as a member database for my site (not a

extending tidy
I have problem with type-hinting and extending tidy. This code creates error:
Code: class cMyTidy

DOMDocument parsing
Hello, I am parsing an xml file from an API which I have converted into a DOMDocument in php. This i

insert quotes
Hi,

I have an output like this:
Code: john,18,Cancer
How can I change this to
Code:

This is driving me nuts!
This insert query looks to be alright, however I get this error:

QuoteYou have an error in yo

Why use OOP?
Can someone explain to me why I should use OOP instead of procedure based code.

Im building a

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash