Top "Random-seed" questions

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

Is there a way to generate a seed out of a sequence of numbers?

For example if java produces the pseudorandom sequence: 9 3 2 5 6 by using 23 as a seed, how can I do the inverse? i.…

java random random-seed
Seeding rand() for a C++ class

I am working on a C++ class that uses a rand() in the constructor. I would really like for this …

c++ class random static-variables random-seed
Best way to seed mt19937_64 for Monte Carlo simulations

I'm working on a program that runs Monte Carlo simulation; specifically, I'm using a Metropolis algorithm. The program needs to …

c++ c++11 random random-seed mersenne-twister
How should OpenAI environments (gyms) use env.seed(0)?

I've created a very simple OpenAI gym (banana-gym) and wonder if / how I should implement env.seed(0). See https://github.…

random random-seed openai-gym
What is the scope of a random seed in Python?

If I use the Python function random.seed(my_seed) in one class in my module, will this seed remain …

python random scope random-seed
How to use random.RandomState

I'd like my script to create the same array of numbers each time I run the script. Earlier I was …

python numpy random random-seed
How to seed randn function opencv

I want to seed randn function but I'm not able to do it. srand(time(NULL)); Mat mymat = Mat::zeroes(1024,1024,…

c++ opencv random random-seed
Reproducible results using Keras with TensorFlow backend

I am using Keras to build a deep learning LSTM model, using TensorFlow backend. Each time I run the model, …

python-3.x tensorflow keras random-seed