coinflip: Randomly return TRUE or FALSE

View source: R/r_tools.R

coinflipR Documentation

Randomly return TRUE or FALSE

Description

Randomly return TRUE or FALSE

Usage

coinflip(n = 1)

Arguments

n

(Integer) The number of times to 'flip the coin'

Value

Returns TRUE or FALSE randomly.

Authors

Examples

coinflip()
#> [1] FALSE

coinflip(5)
#> [1] TRUE TRUE FALSE TRUE FALSE


DesiQuintans/desiderata documentation built on April 9, 2023, 5:43 a.m.