About 9,560 results
Open links in new tab
  1. randn - Normally distributed random numbers - MATLAB

    Description X = randn returns a random scalar drawn from the standard normal distribution. X = randn(n) returns an n -by- n matrix of normally distributed random numbers.

  2. numpy.random.randn — NumPy v2.4 Manual

    Return a sample (or samples) from the “standard normal” distribution. This is a convenience function for users porting code from Matlab, and wraps standard_normal. That function takes a tuple to specify …

  3. randn (MATLAB Functions) - Northwestern University

    To do this, multiply the output of randn by the standard deviation , and then add the desired mean. For example, to generate a 5-by-5 array of random numbers with a mean of .6 that are distributed with a …

  4. torch.randn — PyTorch 2.10 documentation

    Returns a tensor filled with random numbers from a normal distribution with mean 0 and variance 1 (also called the standard normal distribution). For complex dtypes, the tensor is i.i.d. sampled from a …

  5. numpy.random.randn () in Python - GeeksforGeeks

    May 17, 2024 · The numpy.random.randn () function creates an array of specified shape and fills it with random values as per standard normal distribution.

  6. Easily change center (x) and spread ( ) of randn produces pseudo-random distributions with a mean of 0 and a standard deviation of 1. We can modify the output from randn to create distributions with any x …

  7. randn (MATLAB Function Reference) - Mathematics

    returns an array of random entries that is the same size as A. randn, by itself, returns a scalar whose value changes each time it's referenced. s = randn('state')

  8. An In-Depth Guide on Using the randn () Function in MATLAB

    Dec 27, 2023 · The built-in MATLAB randn function provides a simple yet fast and flexible way to generate random numbers following a normal distribution. Both scalar and high-dimensional matrix …

  9. 9.1: MATLAB Random Number Functions - Engineering LibreTexts

    RndNorm = randn (M,N) returns an M-by-N matrix of pseudo-random values drawn from the standard normal distribution, which has a mean (average) = 0 and a standard deviation = 1.

  10. The Matlab command randn generates samples of a Gaussian distributed random variable with mean 0 and variance 1. To obtain a mean other than zero, just add or subtract a constant from the generated …