Top "Random" questions

This tag is for questions pertaining to random numbers and their generators, whether pseudo-random or truly random.

Select 50 items from list at random to write to file

So far I have figured out how to import the file, create new files, and randomize the list. I'm having …

python file list select random
php random x digit number

I need to create a random number with x amount of digits. So lets say x is 5, I need a …

php random numbers
Generate a random date between two other dates

How would I generate a random date that has to be between two other given dates? The function's signature should …

python datetime random
Generate random numbers using C++11 random library

As the title suggests, I am trying to figure out a way of generating random numbers using the new C++11 &…

c++ c++11 random range
How to get records randomly from the oracle database?

I need to select rows randomly from an Oracle DB. Ex: Assume a table with 100 rows, how I can randomly …

oracle select random
Generate random password string with requirements in javascript

I want to generate a random string that has to have 5 letters from a-z and 3 numbers. How can I do …

javascript random
How to properly seed random number generator

I am trying to generate a random string in Go and here is the code I have written so far: …

random go
Generate a random number in the range 1 - 10

Since my approach for a test query which I worked on in this question did not work out, I'm trying …

sql postgresql random
Seedable JavaScript random number generator

The JavaScript Math.random() function returns a random value between 0 and 1, automatically seeded based on the current time (similar to …

javascript random seed
How do I pick 2 random items from a Python set?

I currently have a Python set of n size where n >= 0. Is there a quick 1 or 2 lines Python solution …

python random