Welcome to this community. pnorm is all about normal distribution function ( like elongated S curve)
pnorm(q = 10, mean = 0, sd = 1)
#> [1] 1
pnorm(q = -10, mean = 0, sd = 1)
#> [1] 7.619853e-24
pnorm(q = 0, mean = 0, sd = 1)
#> [1] 0.5
pnorm(q = c(10, -10, 0), mean = 0, sd = 1)
#> [1] 1.000000e+00 7.619853e-24 5.000000e-01
The first three's are essentially
P(-inf<= X <=10 ) = 1
P(-inf<= X <= -10 ) = 7.619853e-24 (close to 0)
P(-inf<= X <=0 ) = 0.5
Last one, we can feed an vector to get those probabilities.
Do you try to get 10 random numbers from a specific normal distribution?