1

Which of the following R code generate a uniform random number?

Correct Answer: x <- runif(1, 0, 10) if(x > 3) { y <- 10 } else { y <- 0 }

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: Which of the following R code generate a uniform random number? | Extra Education