It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Flash Forum

Random Number

Moderator: Phate

Random Number

Postby waddle_penguin on Sat Mar 10, 2007 6:18 pm

I want to start a raffle sort of idea on my website. To do this could anyone please help me with the coding for random numbers, that change each week. I would want the coding to pick a number at total random, each week by itself (so i could just set it up and let it run), and not change before. Is it posible? If yes how?

Thanks
Mike
waddle_penguin
 
Posts: 2
Joined: Sat Mar 10, 2007 6:09 pm

Postby flabbyrabbit on Sun Mar 11, 2007 9:57 am

yeah it would be possible, you would have to set up a date checker which calculates if a week has passed. Then if it has it would generate a random number. So you just want a number that changes every week bt stays the same through out the week?

flabby rabbit
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby waddle_penguin on Sun Mar 11, 2007 8:44 pm

Yes, that would be great if that is posible.

Thaks for that, i'll try and set it up.

Mike
waddle_penguin
 
Posts: 2
Joined: Sat Mar 10, 2007 6:09 pm


Who is online

Users browsing this forum: No registered users and 0 guests