+ 3

Make a lottery game

The challenge is simple, make a lottery game where you have a certain amount of money and randomly draw a number each time. Let the player choose a number and if they chose that number they win, make it so one in 20 chances the player can win a jack pot prize of your choice. My try in C++ https://code.sololearn.com/cGFtfnES2cQF/?ref=app

21st Oct 2017, 7:34 AM
SÆĄn Thanh Tráș§n
SÆĄn Thanh Tráș§n - avatar
2 Answers
+ 3
https://code.sololearn.com/cpwek9ZSI6KY/?ref=app My Try...
21st Oct 2017, 9:02 AM
Prajwal Gowda
Prajwal Gowda - avatar
0
You forgot the 1 in 20 chances
21st Oct 2017, 1:12 PM
SÆĄn Thanh Tráș§n
SÆĄn Thanh Tráș§n - avatar