ex1427: Number drawing game

Description Usage Details Value References Examples

Description

in this game first a number is drawn from a set 1-20, let x be the number drawn. Next another number is drawn from a set x-25 if the second number is greater than 21 then its a win.

Usage

1

Details

game simulation for Exercise 1.4.27 on page 36

Value

returns 1 if the player wins; else returns 0

References

Hogg, R. McKean, J. Craig, A. (2018) Introduction to Mathematical Statistics, 8th Ed. Boston: Pearson.

Examples

1
result <- ex1427()

joemckean/mathstat documentation built on May 30, 2019, 2:01 p.m.