ProbDSorte: Dia de Sorte lottery game probability

Description Usage Arguments Details Value Examples

View source: R/ProbDSorte.R

Description

The player simply chooses from 7 to 15 numbers among the 31 available, they are extracted 7 numbers, you can win by hitting 7, 6, 5 or 4 numbers.

Usage

1
ProbDSorte(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 <4, 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

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