View source: R/generate_random_number.R
generate_random_number | R Documentation |
generate_random_number
draws a random number(s) from a
range either as an integer or a float with a specified number of decimal
digits
generate_random_number( n = NULL, min = NULL, max = NULL, type = "integer", digits = NULL )
n |
numeric; a numeric value that specifies the number of random numbers the user would like returned |
min |
numeric; a numeric value that specifies the minimum number in the range to draw from |
max |
numeric; a numeric value that specifies the maximum number in the range to draw from |
type |
string; a string that must be either |
digits |
|
generate_random_number(n = 1, min = 1, max = 10, type = "integer") generate_random_number(n = 2, min = 1, max = 10, type = "float", digits = 3) generate_random_number( n = 3, min = 1, max = 10, type = "float", digits = "5" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.