Create numbers

ch_double(n = 1, mean = 0, sd = 1)

ch_integer(n = 1, min = 1, max = 1000)

ch_unif(n = 1, min = 0, max = 9999)

ch_norm(n = 1, mean = 0, sd = 1)

ch_lnorm(n = 1, mean = 0, sd = 1)

ch_beta(n = 1, shape1, shape2, ncp = 0)

Arguments

n

(integer) number of things to get, any non-negative integer

mean

mean value

sd

standard deviation

min

minimum value

max

maximum value

shape1, shape2

non-negative parameters of the Beta distribution

ncp

non-centrality parameter

Examples

ch_double()
#> [1] -1.766785
ch_double(10)
#>  [1]  0.56692075 -0.80683410 -0.09073885  0.74046634 -0.39255046  0.07472146
#>  [7]  0.37026793 -0.04161623 -0.40131595 -0.67053942
ch_double(100)
#>   [1]  0.25276831  1.23537770 -0.49010002  1.45296521  0.35623802 -0.68351600
#>   [7]  0.47581917 -1.43831006 -0.24683709  0.73602061 -0.64513730  0.80083877
#>  [13]  0.38694909  2.32519650 -1.01395009 -1.20246147  1.60328241  0.82657882
#>  [19] -0.25869112  0.52850956 -0.40867766 -0.95205827  0.06191763  1.24169210
#>  [25]  1.81543220 -1.01066063 -0.63167285  0.86287495  1.05838150  0.83638657
#>  [31]  0.86590184  0.02745171 -2.65881534  0.30779729  0.79340639  0.01535522
#>  [37]  1.16616903  2.15876889 -0.24689094 -0.70108580 -0.95170832 -0.48849030
#>  [43] -0.73221406  0.06793965  0.75081351  0.44569103  0.50020059 -2.14662264
#>  [49] -1.25199795  1.82317949  0.87608004  1.13897355  0.92324628 -0.85891385
#>  [55]  2.87159424  1.60962207  2.37527618 -1.43481254  1.28785354 -0.92156561
#>  [61]  1.93708124  1.95637559 -0.84173955  0.27143979  0.64152044 -1.60114373
#>  [67]  1.32026289 -0.77036224  0.15205889 -1.05311659 -0.27948492  2.53710506
#>  [73] -0.05475788  0.12841583  1.11376564  0.13405256 -0.33710492 -0.32292706
#>  [79]  0.68990808 -0.86595735  0.16336287  0.34575490 -0.27746706  0.51645157
#>  [85] -0.69684154 -0.24780876 -0.21327879 -0.08441436  1.04061420 -0.90256271
#>  [91] -1.61338081  0.20815341 -0.38908101 -1.92642481  1.00839108  1.45814199
#>  [97]  0.51921791  1.21747140  0.27875137  0.04783026

ch_integer()
#> [1] 44
ch_integer(10)
#>  [1] 234 642 258  29 639 767  82 776 183 922
ch_integer(100)
#>   [1] 235  98 565 913  79 444 117 296 713  64  51 739 888 632 683  31 957 657
#>  [19] 806 572 949 250 841 646  85 266 769 465 750 381 645 304 742 530 883 582
#>  [37] 557 376  50 486 668 888 569 869 185 931 574 415 227 695 317 580  59 617
#>  [55] 540 119 183 390 233 337 398 505 402 927 166 454 216 341 153 874 477  49
#>  [73] 591 644 350  17 346  45 729 259 850 245 277 602  79 560 565 153 820 911
#>  [91] 128 163 631 464 634 833 538 332 265 721

ch_unif()
#> [1] 6625.272
ch_norm()
#> [1] 1.016472
ch_lnorm()
#> [1] 0.8276579
ch_beta(shape1 = 1, shape2 = 1)
#> [1] 0.769246