pystats_norm.rnorm ================== .. py:module:: pystats_norm.rnorm Functions --------- .. autoapisummary:: pystats_norm.rnorm.rnorm Module Contents --------------- .. py:function:: rnorm(n, mean=0, sd=1) This function generates an array of length n normally distributed random variables with mean equal to the `mean` and sd equal to the `sd`. :param n: The number of random variables to be simulated. :type n: int :param mean: The mean value of the normal distribution. Default is 0. :type mean: np.float64, optional :param sd: The standard deviation of the normal distribution. Default is 1. :type sd: np.float64, optional :returns: A array of length n containing normally distributed random variables with mean equal to `mean` and sd equal to `sd`. :rtype: np.ndarray .. rubric:: Examples >>> rnorm(2, mean=5, sd=2) array([6.3245, 4.5983])