Answers for "we use r’s function to generate random integers within some interval."

R
2

random integer in r

random_x <- sample(1:10, 1)

# or

random_10x = sample(-1:1, size = 10, replace = T)
Posted by: Guest on September-09-2020

Code answers related to "we use r’s function to generate random integers within some interval."

Browse Popular Code Answers by Language