Search notes:

R function: rnorm

rnorm generates a vector of normally distributed random numbers.
rnorm can take up to three arguments:
set.seed(…) can be used to set a seed for the random number generator.
# rnorm: the normal distribution
#
# see also -> sd() and -> var()

n <- rnorm(1000000, mean = 100, sd = 36)

x11();
hist(n, breaks = 51, col = "orange", main = "rnorm")

z <- locator(1) # wait for mouse click or enter pressed
Github repository about-r, path: /functions/rnorm.R

See also

Random numbers (distribution)
sd(…) and var(…)
Index to (some) R functions
The Oracle function dbms_random.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759406382, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/rnorm(68): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78