You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
236 B
R
8 lines
236 B
R
5 years ago
|
> runif(1) # generates 1 random number
|
||
|
[1] 0.3984754
|
||
|
|
||
|
> runif(3) # generates 3 random number
|
||
|
[1] 0.8090284 0.1797232 0.6803607
|
||
|
|
||
|
> runif(3, min=5, max=10) # define the range between 5 and 10
|
||
|
[1] 7.099781 8.355461 5.173133
|