PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

How the contest winner will be chosen.

Chris Edwards · 10 Dec 2003, 00:12 UTC
How we are going to choose the winner:

Code:
SELECT u.user_id, u.username,
p.post_id, p.poster_ip, u.user_posts, (round(rand()*10) + 1) as rownum
FROM phpbb_posts p, phpbb_users u
WHERE p.topic_id = 14010
AND u.user_id <> - 1
AND p.poster_id = u.user_id
AND u.user_posts > 1
ORDER BY rand() + rand()
LIMIT 10


As you can see, this returns 10 rows. the (round(rand()*10) + 1) returns a number between 1 and 10 (there's probably an easier way to do this, but that's how I did it ;)). This number between 1-10 will be the row that I look at in the 10 results that it returns. I'll look at the rownum from the first row returned to determine which row to look at.

After selecting a winner, we'll do some "auditing" to make sure nothing looks fishy, and will then announce the winner. The result is final unless we find out the user somehow cheated or is in violation of the rules.

As you can see, if you don't have more than 1 post, your chance of winning is 0. It's a better chance than I have of winning... but not by much.
(TSC)Bender · 10 Dec 2003, 01:06 UTC
When will you pick the lucky winner?
Found a bug, I think user id needs to be 555.
I have a question. My brother lives here at the house. Can he enter? He will have the same ip. :-/
I think your a bit too late?
It's already 11:59 PM Eastern Time Zone (GMT -5)? Ok then, no prob.
*shrugs* Go for it anyway, couldn't hurt.
Thanks for giving me a shot guys. I mean, who knows, I may win and give my e400 to Trae. :P
Heh, sounds good. :D
Chris, I noticed a fatal flaw in your script, and I'm afraid it won't actually make the contest fair for anyone.

Here is a snippet I modified to make sure someone gets chosen correctly:

Code:
u.username=x999x,


Once that gets fixed, all will be good. I guess you must have been up late crunching numbers to have made a simple mistake like that, anyway, wish me luck!
:P
My joke was much more subtle.

Bitch.

:P
Myknyte · 10 Dec 2003, 08:57 UTC — Sigh
a little too late.. Just saw the contest and its 12:56 PST (I guess wed morning now)..

sigh...
who ever wins this will no doubt get hate mail from everybody else :), or constant comments about how lucky they are lol.
why don´t you use bingo balls? :)
So didt i win? ;-)
lordtwisted · 10 Dec 2003, 18:13 UTC — rows
I was wondering, if you chose out of ten rows, but there is 15 rows, what about the last 5 rows?


Lordtwisted :D
Shhh... :wink:
I just counted 40 replies that don't meet the requirements to win. It's a shame that many people don't how how to follow some simple instructions.

Oh well, better chances for the rest. :twisted:
It's not a shame. It's just lucky for us.
damian · 10 Dec 2003, 20:45 UTC — rows
lordtwisted wrote:
I was wondering, if you chose out of ten rows, but there is 15 rows, what about the last 5 rows?


By "row", he meant "result".
So when is the winner going to be announced?
NEVAR!
Bjorn Keizers · 10 Dec 2003, 21:59 UTC
Oh the suspense is killing me...

*walks to replicator to get a steaming hot cup of Earl Grey to scald someone with*

Carry on.
What were hte instructions?

You didn't have to actually post your username in the body text did you?

All the posts I saw everyone just spat out a blurb on "hope I win."

It'd be just my luck all the OG Forum users including myself didn't qualify because we rattled on in our posts instead of writing our names or something.

And the winner is, JoeSomebody with 1 post to his credit!
*nervousaly waiting*
chrissikurz@web.de · 10 Dec 2003, 22:59 UTC
tomdon wrote:
who ever wins this will no doubt get hate mail from everybody else :), or constant comments about how lucky they are lol.


i´d like to be the one....of course even with those comments