Question:

What is the difference between rnorm and runif functions ?

Answer:

rnorm function generates "n" normal random numbers based on the mean and standard deviation arguments passed to the function.

Syntax of rnorm function -

rnorm(n, mean = , sd = ) 

runif function generates "n" unform random numbers in the interval of minimum and maximum values passed to the function.

Syntax of runif function -

 runif(n, min = , max = )


Keywords:

© 2017 QuizBucket.org