Share your repls and programming experiences

← Back to all posts
The lottery!! (99% of people can't win) NOT CLICK BAIT
Daniel_Campos

Play this amazing lottery game and see if you can win!

Voters
jada12thorpe
LilJapKid
leksik
masfrost
MATHyou
JohnIlufi
EthanWentworth
JoeyAsmus
Daniel_Campos
s658023
Comments
hotnewtop
Tricksyz


hand the cash over

UzayAnil

I matched all of them!(I stole your answer, Sorry @Tricksyz)

EgorStrakhov

@Tricksyz, nice one

sErn

You don't need to call srand so many times. You can just type srand(time(NULL)) once at the beginning of your main function.

Giothecoder

Sorry that was mean I’ll delete those.

AdCharity

Yo I won $100

AdCharity
leciafosl

Honestly, from my perspective, the lotteries and the gambling industry, in general, are a scam. So if someone sees gambling as an opportunity of making money, I can assure you that this is the wrong industry. However, if you are looking for a new hobby, then gambling can suit you. For instance, I've read an article on https://onlinelottosites.com/winners/ri-mega-millions-lottery-winners/ ,and realized that there is a slight chance of winning. Still, I am sure that you will lose more money by playing.

froggiez55555

I won 10,000,000 dollars!!!

acope169

its a scam
i won and only got 1 mil when it should be 10mil

mchapy1

I won on the second try with 4, 7, 19 as my numbers. Nice coding, I hope to see more cool things from you in the future!

Samurai493

3 wrong numbers=2 right numbers??

Samurai493

how

Samurai493

Giothecoder

I would suggest revamping this with the c++11 random library, it provides uniformly distributed random numbers and several types of PRNGs with massive periods. 👍

[deleted]

That title is like every youtube title in my sisters recommended

UzayAnil

please hand over the money
these are the results I got:
You matched all three numbers and got them in the same order! You win $1,000,000!
winning numbers [1] [20]