Can you help me with a guessing problem? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can you help me with a guessing problem?

Last time, I felt that my only way to get rich was to be the best programmer (haha) or win the lottery :) My national lottery has a game called 6/49. You have to guess the six numbers out of 49. The numbers go from 1 to 49. What is my chance to win the lottery ? can you help me a program which makes six random numbers and calculate the winning chance. thank you

29th Apr 2018, 9:53 PM
Amicul
Amicul - avatar
2 Answers
+ 1
i don't think i have 1 in 294 chance of winning the big prize... I believe it's a much bigger number
7th May 2018, 5:36 AM
Amicul
Amicul - avatar
+ 1
Must the six numbers be in a specific order
21st May 2019, 11:48 AM
Shuaib Nuruddin
Shuaib Nuruddin - avatar