Generate hands at random

rand_qipai(nrow, rule = default_rule(), seed = sample.int(10000, 1))

Arguments

nrow

An integer scalar.

rule

A list; a rule set. Defaults to default_rule().

seed

An integer scalar. Used for initializing the random number generator.

Value

A tibble that consists of 4 columns of paistr vector.

Examples

rand_qipai(3)
#> # A tibble: 3 × 4
#>   l1                      l2                      l3                     
#>   <paistr>                <paistr>                <paistr>               
#> 1 <13>'m136p2338s478z256' <13>'p55689s3666z4566'  <13>'m37p147s223899z15'
#> 2 <13>'m23469p4s119z2345' <13>'m46p227789s38z156' <13>'m357p134688s256z1'
#> 3 <13>'m138p2258s4599z36' <13>'m1235p3458z34567'  <13>'m1367p39s2456679' 
#> # ℹ 1 more variable: l4 <paistr>