Top "Random" questions

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

How to generate a random String in Java

I have an object called Student, and it has studentName, studentId, studentAddress, etc. For the studentId, I have to generate …

java string random char
Java random numbers using a seed

This is my code to generate random numbers using a seed as an argument: double randomGenerator(long seed) { Random generator = …

java random seed
Seeding the random number generator in Javascript

Is it possible to seed the random number generator (Math.random) in Javascript?

javascript random
How do I create a random alpha-numeric string in C++?

I'd like to create a random string, consisting of alpha-numeric characters. I want to be able to be specify the …

c++ string random
Generating Unique Random Numbers in Java

I'm trying to get random numbers between 0 and 100. But I want them to be unique, not repeated in a sequence. …

java random
Simple way to create matrix of random numbers

I am trying to create a matrix of random numbers, but my solution is too long and looks ugly random_…

python random coding-style
Random Number Between 2 Double Numbers

Is it possible to generate a random number between 2 doubles? Example: public double GetRandomeNumber(double minimum, double maximum) { return Random.…

c# random
Expand a random range from 1–5 to 1–7

Given a function which produces a random integer in the range 1 to 5, write a function which produces a random integer …

algorithm random puzzle