1.

What will be the output of runif()?(a) Random number(b) Numbers(c) Character(d) Path generationI have been asked this question in semester exam.The query is from Functions topic in division Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

Correct choice is (a) Random number

The best explanation: Random numbers from a normal distribution can be generated using runif() function. We can specify the range of the uniform distribution with the help of MAX and min ARGUMENT. If not provided, the DEFAULT range will be between 0 and 1.



Discussion

No Comment Found

Related InterviewSolutions