About 50 results
Open links in new tab
  1. How exactly does random.random() work in python? - Stack Overflow

    Feb 2, 2017 · The random () method is implemented in C, executes in a single Python step, and is, therefore, threadsafe. The _random is a compiled C library that contains few basic operations, which …

  2. Generate list of random names - Python - Stack Overflow

    I'm trying to create a list of names, with each one being different. Here is my code right now, but all it does it create multiple instances of the same name. import random first_names=('John','...

  3. python - How to make a random function without using any library ...

    Mar 5, 2023 · An example of a well-known algorithm which produces pseudo-random integer numbers, is simple enough to be programmed/understood by a beginner, and has quite good statistical …

  4. python - How can I randomly select (choose) an item from a list (get a ...

    As of Python 3.6 you can use the secrets module, which is preferable to the random module for cryptography or security uses. To print a random element from a list:

  5. Random word generator- Python - Stack Overflow

    Using random.sample will provide you with a list of the total number of items (characters in this case) from the given object (a string object here) based on the number you want (random.sample …

  6. Can I generate authentic random number with python?

    Apr 6, 2014 · Through which we can get a better random number than normal pseudo random number. It's much more harder to predict. So, is there a way that in python we can produce such a random …

  7. Python Random Function without using random module

    Feb 25, 2015 · I need to write the function - random_number (minimum,maximum) Without using the random module and I did this: import time def random_number (minimum,maximum): now = str …

  8. python - Random is barely random at all? - Stack Overflow

    47 Before blaming Python, you should really brush up some probability & statistics theory. Start by reading about the birthday paradox By the way, the random module in Python uses the Mersenne …

  9. Python random function - Stack Overflow

    Feb 21, 2013 · The 'random' module is a package from the python standard library, as well as a function defined in this package. Using 'import random' imports the package, which you can then use the …

  10. python - Downloading Random.py Using Anaconda - Stack Overflow

    Apr 30, 2017 · The random module is part of the Python standard library. There is no need to install it separately.