On this page:
random-normal
random-standard-normal
random-tensor
8.12

18 Random number functions🔗ℹ

procedure

(random-normal mu sigma)  scalar?

  mu : scalar?
  sigma : scalar?
Returns a random number sampled from the normal distribution with a mean of mu and a standard deviation of sigma.

procedure

(random-standard-normal)  scalar?

Returns a random number sampled from the normal distribution with a mean of 0.0 and a standard deviation of 1.0.

procedure

(random-tensor mean variance s)  tensor?

  mean : scalar?
  variance : scalar?
  s : (listof natural?)
Generates a tensor of shape s where the scalars are drawn from a normal distribution with a mean given by mean and the standard deviation given by (sqrt variance).