About 5,220,000 results
Open links in new tab
  1. What does `random.seed()` do in Python? - Stack Overflow

    Python will seed itself with the OS RNG if possible (and it always will be on desktop / server systems), then use the current time as backup. So if you want "real" random numbers you …

  2. set random seed programwide in python - Stack Overflow

    The main python module that is run should import random and call random.seed(n) - this is shared between all other imports of random as long as somewhere else doesn't reset the seed.

  3. python - What does numpy.random.seed (0) do? - Stack Overflow

    Jun 20, 2022 · As noted, numpy.random.seed (0) sets the random seed to 0, so the pseudo random numbers you get from random will start from the same point. This can be good for …

  4. pandas - How to specify a random seed while using Python's …

    Oct 25, 2018 · According to the notes of numpy.random.seed in numpy v1.2.4: Best practice is to use a dedicated Generator instance rather than the random variate generation methods …

  5. python - How to query seed used by random.random ... - Stack …

    Is there any way to find out what seed Python used to seed its random number generator? I know I can specify my own seed, but I'm quite happy with Python managing it. I want to know what …

  6. python - What is suggested seed value to use with random.seed ...

    Nov 9, 2009 · I'm using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed () function? Currently I am letting this …

  7. Como usar random.seed() em Python? - Stack Overflow em …

    Mar 30, 2019 · Preciso gerar um número aleatório utilizando a linguagem Python, na documentação vi que existe uma função random.seed() para aumentar a aleatoriedade do …

  8. How To Set Global Random Seed in Python - Stack Overflow

    Apr 25, 2019 · Manually resetting the random seed in each function to the the desired seed setting variable which is imported as global with global global_seed, or imported as a …

  9. python - How can I retrieve the current seed of NumPy's random …

    Aug 24, 2015 · import numpy as np np.random.seed(42) However, I'm not interested in setting the seed but more in reading it. random.get_state() does not seem to contain the seed. The …

  10. How to set the fixed random seed in numpy? - Stack Overflow

    Oct 24, 2019 · I was believing that setting a seed always gives the same result. But I got different result each times.How to set the seed so that we get the same result each time? Here is the …