Top "Random-seed" questions

A random-seed is used to initialize a pseudo-random number generator in many programming languages.

random.seed(): What does it do?

I am a bit confused on what random.seed() does in Python. For example, why does the below trials do …

python random random-seed
Generating uniform random numbers in Lua

I am working on programming a Markov chain in Lua, and one element of this requires me to uniformly generate …

random lua random-seed
Differences between numpy.random and random.random in Python

I have a big script in Python. I inspired myself in other people's code so I ended up using the …

python random random-seed
setting seed for excel random number

In excel below formula will generate random number from a normal distribution with mean 10 and variance 1. Is there a way …

random excel-2010 random-seed
How can I retrieve the current seed of NumPy's random number generator?

The following imports NumPy and sets the seed. import numpy as np np.random.seed(42) However, I'm not interested in …

python numpy random random-seed mersenne-twister
Should I use `random.seed` or `numpy.random.seed` to control random number generation in `scikit-learn`?

I'm using scikit-learn and numpy and I want to set the global seed so that my work is reproducible. Should …

python numpy random scikit-learn random-seed
Random seed Math.random in Java

In my code I use random numbers in different classes. How to define random seed? Can I define this seed …

java random random-seed
How do I get the seed from a Random in Java?

I am creating a deep clone for some object. The object contains a Random. Is it good practice to retrieve …

java random clone random-seed
Best way to add seed to Perlin noise?

I'm trying to implement 2D Perlin noise generation in C++, and some implementations I found use no seed at all (…

c++ perlin-noise random-seed
Reproducible results in Tensorflow with tf.set_random_seed

I am trying to generate N sets of independent random numbers. I have a simple code that shows the problem …

python tensorflow random-seed reproducible-research