ProbTMania: Timemania lottery game probability

Description Usage Arguments Details Value Examples

View source: R/ProbTMania.R

Description

The player chooses 10 numbers from the 80 available, 7 numbers are extracted, then to compete for the prizes for hits of 7, 6, 5, 4, 3 and the team of heart.

Usage

1
ProbTMania(x, y)

Arguments

x

number

y

number

Details

Warning message if y (number of hits) is greater than 7, "Prob = 0, the maximum number of hits is 7". However, if y <3, note that this probability does not exist. Otherwise note that the player has won.

x is the amount of numbers bet

y is the amount number of hits

Value

number

Examples

1
ProbTMania(10,9)

farias741/Lotto documentation built on Dec. 20, 2021, 7:43 a.m.