Random Number Generator, Lottery, and duplicats

In summary: EIn summary, the conversation is about a new project surrounding an international online lottery pool. The project involves purchasing tickets in large quantities and using a script to generate unique sets of numbers. The speaker is also looking for collaboration on lottery probabilities and figures. The conversation also touches on the odds of winning and the potential return on investment for buying lottery tickets. The question of whether the lottery draw sequence is truly random is also raised.
  • #1
ThomasM
1
0
Random Number Generator, Lottery, and duplicates

Hi, I'm new here and looking for a bit of help and some overall conversation on a new project I'm working on. It fundamentally surrounds an international online lottery pool where visitors can join, buy a lottery ticket and then use the power of numbers to decrease the odds of a potential win, and then share in the winnings equally.

We will be purchasing tickets on the order of 50,000 at a time.

A few questions that I have, some quite simple, so I apologize! Your help and insight is much appreciated.

I have written all the necessary scripts to generate a set of numbers - 6 number from 1-49. The script doesn't allow the same number to be chosen twice, for obvious reasons. I know need to ensure that any set of 6 numbers is unique, and hasn't been chosen before (sitting in the database). I of course need to compare all the possible variations of this 6 number set to the existing numbers in the db. I can't quite remember how to calculate how many variations a set of numbers can have - so I need to figure this out as well as some logic on how to run through all possibilities and do a compare. Can anyone shed a little light on this one?

Also, I'm looking for some collaboration on overall lottery probabilities and figures - If you are legitimately interested in this field and would like to help out in any capacity, please get in touch.

Thanks again! Thomas
 
Last edited:
Physics news on Phys.org
  • #2
Well, a quick rule of thumb if you don't want to calculate anything is to consider the jackpot to be between 1/4 and 1/2 of the purse (of course it could be far less). So for instance, if the jackpot is 1 million dollars, consider the purse to be 2-4million per week or whatever. Divide that by the price of the ticket, which is probably $1 or so, and you get 2-4million to 1. In other words, you can perhaps stand to win every 40-80 weeks (buying 50000 per week), so let's round that to once per year.

In a year you'll spend say 2 million dollars on lottery tickets. Doesn't seem like such a good deal, does it? That's only a 50% return at most. Of course, that 50% is the same as we assumed at the start by assuming that the jackpot is 1/2 of the purse. Your odds don't increase by buying more tickets.

You'd get far better odds by learning to play blackjack properly, and possibly far better odds yet if you bet in a speculative arena like the stock-market.
 
Last edited:
  • #3
Dear ThomasM,

Are you referring to the 6/49 lottery ?

If so, can you tell me if, for each draw, the draw sequence could be considered truly random ?



VE
 

1. What is a Random Number Generator (RNG)?

A Random Number Generator (RNG) is a mathematical algorithm that generates a sequence of numbers that are random and unpredictable. These numbers are used in various applications, such as lottery drawings, online gaming, and cryptography.

2. How does a Random Number Generator work?

A Random Number Generator uses a seed value, which is an initial value that determines the sequence of numbers that will be generated. The algorithm then uses various mathematical operations to manipulate the seed value and produce a random number. The result is a sequence of numbers that appear to be random.

3. Are RNGs truly random?

The short answer is no. RNGs are technically not truly random because they are generated by a mathematical algorithm. However, the generated numbers are unpredictable and appear to be random, making them suitable for many applications.

4. How are RNGs used in lotteries?

In lotteries, RNGs are used to select the winning numbers. The algorithm generates a random sequence of numbers that correspond to the possible numbers in the lottery. The winning numbers are then chosen from this sequence, ensuring fair and unbiased results.

5. What are duplicats and how do they relate to RNGs and lotteries?

Duplicats are duplicate numbers that appear in a lottery drawing. These can occur due to errors in the RNG algorithm or human error. To prevent duplicats, lottery officials often use multiple RNGs and conduct thorough testing before each drawing to ensure fair and accurate results.

Similar threads

Replies
1
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
2K
Replies
1
Views
2K
  • Programming and Computer Science
Replies
1
Views
623
Replies
10
Views
8K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
3K
Replies
1
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
305
  • Programming and Computer Science
Replies
22
Views
3K
  • Set Theory, Logic, Probability, Statistics
2
Replies
41
Views
4K
Back
Top