Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 100 results for
raffle
- Page 1
Simple recursion unique raffle
Programming
Web Development
10 Years Ago
by Szabi Zsoldos
Raffle
function to generate unique numbers for each player, related to the same table with a recursive aproach. I had to do a simple
raffle
system for a contest that I was working on and tried many things and the most simple and the most effective one to generate unique numbers for each player was this, a simple recursive function.
Re: Simple recursion unique raffle
Programming
Web Development
10 Years Ago
by diafol
…createRaffleNumber($db, $player, $start, $end) { //start with getting random
raffle
number $raffle_number = mt_rand($start,$end); //select data $sth = $db-&…in_array($raffle_number, $data)) $raffle_number = mt_rand($start,$end); //insert
raffle
number to person $sth = $db->prepare("INSERT …
Need help with Python raffle game
Programming
8 Years Ago
by Ossy009
… in the email address and stores email and
raffle
into a database.Also the
raffle
entires will be selected at random from…
Re: Need help with Python raffle game
Programming
8 Years Ago
by Ossy009
Someone implented Code into mine all I need is a code that allows user to type in the email address and store that and the random
raffle
into a Db plus view
raffle
entries and I have the code for the random selection
Re: Need help with Python raffle game
Programming
8 Years Ago
by rproffitt
Why does this look so much like http://stackoverflow.com/questions/35113113/more-efficient-algorithm-to-randomly-select-
raffle
-winners-in-python
Re: Simple recursion unique raffle
Programming
Web Development
10 Years Ago
by minitauros
Tip: If you use time() or microtime() in your random number somehow, you will generate a number that is much more likely to be unique, which means you may have to execute less database operations (less queries are needed to find out if a number already exists, for the number will probably always be unique).
Re: Simple recursion unique raffle
Programming
Web Development
10 Years Ago
by Szabi Zsoldos
That is true, my ideea was that I had limited players, almost 50k and I did a max of 100K.
Re: Need help with Python raffle game
Programming
8 Years Ago
by Ossy009
More efficant to understand the code.
Totally lost in functions!
Programming
Software Development
16 Years Ago
by nelledawg
…, grandtotal); choice = contyn("\nWould you like to purchase more
raffle
tickets?"); } while (choice == 'y' || choice == 'Y'); return 0; … use: system("clear"); printf("WELCOME TO THE
RAFFLE
!"); return; } /* ================================================================ */ double getfloat(char item[], …
Major problem with functions. Need help!
Programming
Software Development
16 Years Ago
by nelledawg
…, grandtotal); choice = contyn("\nWould you like to purchase more
raffle
tickets?"); } while (choice == 'y' || choice == 'Y'); return 0; … use: system("clear"); printf("WELCOME TO THE
RAFFLE
!"); return; } /* ================================================================ */ double getfloat(char item[], …
Re: Major problem with functions. Need help!
Programming
Software Development
16 Years Ago
by nelledawg
…); choice = contyn("\nWould you like to purchase more
raffle
tickets?"); show(ticketquan, ticketcost, tickettotal, finaltotal); } … use: system("clear"); printf("WELCOME TO THE
RAFFLE
!"); return; } /* ================================================================ */ double getdouble(char item[], …
Re: Major problem with functions. Need help!
Programming
Software Development
16 Years Ago
by nelledawg
…; choice = contyn("\nWould you like to purchase more
raffle
tickets?"); show(ticketquan, ticketcost, tickettotal, grandtotal); } while… use: system("clear"); printf("WELCOME TO THE
RAFFLE
!\n"); return; } /* ================================================================ */ double getdouble(char item…
Re: Major problem with functions. Need help!
Programming
Software Development
16 Years Ago
by mitrmkar
…, grandtotal); choice = contyn("\nWould you like to purchase more
raffle
tickets?"); [/B] } while (choice == 'y' || choice == '… use: system("clear"); printf("WELCOME TO THE
RAFFLE
!\n"); return; } /* ================================================================ */ double getdouble(char item[], double …
Re: Major problem with functions. Need help!
Programming
Software Development
16 Years Ago
by nelledawg
…, tickettotal); choice = contyn("\nWould you like to purchase more
raffle
tickets?"); } while (choice == 'y' || choice == 'Y'); show2(… use: system("clear"); printf("WELCOME TO THE
RAFFLE
!\n\n\n"); return; } /* ================================================================ */ double getint(char item…
Re: Major problem with functions. Need help!
Programming
Software Development
16 Years Ago
by mitrmkar
…, grandtotal); choice = contyn("\nWould you like to purchase more
raffle
tickets?");
An observation, a project, and an inquiry.
Programming
Software Development
14 Years Ago
by PixelHead777
… [U]simplistic[/U] modules. [B]Challenge: [U]
Raffle
.[/U][/B] Have Python run a
raffle
based on names you give it. Determine…
HTML Form Not Working
Digital Media
UI / UX Design
10 Years Ago
by kbhat.97
…; <h2 class="fs-title">Item to
raffle
</h2> <h3 class="fs-subtitle"… class="fs-subtitle">Please enter information about
raffle
</h3> <input type="text" name…
Re: An observation, a project, and an inquiry.
Programming
Software Development
14 Years Ago
by Ene Uran
… sticky's project ideas very much. Please put your clever
Raffle
project back into the thread. Avoid the unsubstantiated extra comments…
Technology and Productivity
Community Center
17 Years Ago
by Dshaw
… extra bonus, that being a free Microsoft Zune as a
raffle
prize to the survey takers. I figured some of you…
Soundbridge??
Hardware and Software
Hardware
Mobile and Wearables
15 Years Ago
by Chemodino
I won a "Pinnacle Soundbridge HomeMusic" in a
raffle
and while it looks easy to use I do not have any way of sending mu music to it from my PC. What is the best device to use to send my music to this Soundbridge?
40 Column Text Mode problem
Programming
Software Development
15 Years Ago
by donjohnson24
… 'bet' on the winner. Not really betting - more like a
raffle
- but my program enabled the odds for the eight runners…
What The Moonfruit? A Twitter Marketing Campaign Analysis
Digital Media
Digital Marketing
Search Engine Strategies
14 Years Ago
by Social Bug
…. The self-service online website generator ran a week-long
raffle
offering one Macbook Pro a day to anyone in the…
Dinner with Dani
Community Center
Meta DaniWeb
13 Years Ago
by happygeek
… me into submission, but congrats to whoever won the free
raffle
for the iPad! I'm not jealous at all, oh…
Re: Word Association Game
Community Center
Geeks' Lounge
17 Years Ago
by happygeek
Raffle
-> Singapore
Re: Word Association Game
Community Center
Geeks' Lounge
17 Years Ago
by roryt
prizes -->
Raffle
Re: Getting Members To Register
Digital Media
Digital Marketing
15 Years Ago
by lendell
One tactic would be to offer an incentive to register. You could host a contest or
raffle
of sorts with a chance to win prizes, however you must be registered to be eligible. I would also recommend that you change the "guests' corner" to a guest book where the user is limited to one 150 character "hello".
Re: Getting Members To Register
Digital Media
Digital Marketing
15 Years Ago
by wulawula
… an incentive to register. You could host a contest or
raffle
of sorts with a chance to win prizes, however you…
Re: Yes or No
Community Center
Geeks' Lounge
15 Years Ago
by slimeyapple
YES? (if a
RAFFLE
counts? I was shopping just before Christmas and was handed …
Re: SQL Syntax Error
Programming
Databases
14 Years Ago
by TokenFire
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO raf_emails VALUES(1, 'Email Verification Link', 'You or someone else' at line 12. Any ideas on what to do? Its for a
raffle
system.
Re: SQL Syntax Error
Programming
Databases
14 Years Ago
by ratcycle
… 12. Any ideas on what to do? Its for a
raffle
system.[/QUOTE] I am having the same problem. Any help…
1
2
3
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC