Skip to content
Prev 25728 / 398502 Next

unexpected behaviour of rnorm()

Hello everyone.

If I do

f <- function(n){max(rnorm(n))}
plot(sapply(rep(5000,4000),f))   #[this takes my PC about 30 seconds]

then I get something quite unexpected: gaps in the distribution.  For
me, the most noticable one is at about 3.6.

Do others get this?  Is it an optical illusion?  It can't be right,
can it?  Or maybe I just don't understand the good ol' Gaussian very
well. 

anyone got an explanation?


[linux redhat 7.1; R-1.6.1]