Top "Random" questions

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

Generating random numbers with normal distribution in Excel

I want to produce 100 random numbers with normal distribution (with µ=10, σ=7) and then draw a quantity diagram for these numbers. How …

excel random normal-distribution
How do I create a list of random numbers without duplicates?

I tried using random.randint(0, 100), but some numbers were the same. Is there a method/module to create a list …

python random
Generate GUID in MySQL for existing Data?

I've just imported a bunch of data to a MySQL table and I have a column "GUID" that I want …

mysql random guid
How do I seed a random class to avoid getting duplicate random values

I have the following code inside a static method in a static class: Random r = new Random(); int randomNumber = r.…

c# random
Random / noise functions for GLSL

As the GPU driver vendors don't usually bother to implement noiseX in GLSL, I'm looking for a "graphics randomization swiss …

random shader glsl noise perlin-noise
How can I shuffle the lines of a text file on the Unix command line or in a shell script?

I want to shuffle the lines of a text file randomly and create a new file. The file may have …

shell random command-line awk shuffle
Random state (Pseudo-random number) in Scikit learn

I want to implement a machine learning algorithm in scikit learn, but I don't understand what this parameter random_state …

python random scikit-learn
Get a random boolean in python?

I am looking for the best way (fast and elegant) to get a random boolean in python (flip a coin). …

python random
How to use function srand() with time.h?

My program contains code that should generate a random positive integer number every time I execute it. It generates random …

c random srand
Select random lines from a file

In a Bash script, I want to pick out N random lines from input file and output to another file. …

bash shell random text-processing