pystats.rnorm ============= .. py:module:: pystats.rnorm Functions --------- .. autoapisummary:: pystats.rnorm.rnorm Module Contents --------------- .. py:function:: rnorm(n, mean=0, sd=1) This function generates a vector (NumPy 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: float, optional :param sd: The standard deviation of the normal distribution. Default is 1. :type sd: float, optional :returns: A NumPy array of length n containing normally distributed random variables with mean equal to `mean` and sd equal to `sd`. :rtype: numpy.ndarray .. rubric:: Examples >>> rnorm(2, mean=5, sd=2) array([6.3245, 4.5983])