vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vbBux / vbPlaza (https://vborg.vbsupport.ru/forumdisplay.php?f=171)
-   -   daily lottery - random? (https://vborg.vbsupport.ru/showthread.php?t=111652)

EasyTarget 03-29-2006 03:57 PM

daily lottery - random?
 
I have 1 user who has won the daily lottery 10 times in a row, despite that fact that others are buying tickets as well. Is there something he's figured out like maybe the first person to buy tickets after the last lottery ends will always win? How does it choose a winner?

CMX_CMGSCCC 04-01-2006 01:37 AM

Nope, its a random chooser. All it does is generate a random number from 0 to the number of tickets that are sold and it chooses that number as the entry from the MySQL table.

-CMX

subnet_rx 06-19-2006 04:41 PM

I've had the same problem, I only have a weekly lottery and a monthly, but I have 3 users who have won multiple times each.

CMX_CMGSCCC 06-20-2006 08:34 PM

Maybe noone is buying tickets.

If only 3 people buy tickets all the time, then of course 1 of the 3 will be the winner.

-CMX

dan35 06-20-2006 09:20 PM

Same problem here! My board users complain why I always win :)

CMX_CMGSCCC 06-20-2006 09:25 PM

How many tickets are purchased daily at ur sites?

-CMX

dan35 06-20-2006 09:34 PM

3-10 weekly. Usually I'm the first buyer.

CMX_CMGSCCC 06-20-2006 09:37 PM

The first buyer is not always the winner, it just uses php's rand(1, xtickets) to generate which one has one.

-CMX


All times are GMT. The time now is 03:36 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00998 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete