Top "Random" questions

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

Random alpha-numeric string in JavaScript?

What's the shortest way (within reason) to generate a random alpha-numeric (uppercase, lowercase, and numbers) string in JavaScript to use …

javascript random
Generate a random letter in Python

Is there a way to generate random letters in Python (like random.randint but for letters)? The range functionality of …

python random python-3.x
Random number c++ in some range

Possible Duplicate: Generate Random numbers uniformly over entire range I want to generate the random number in c++ with in …

c++ random
Laravel - Eloquent or Fluent random row

How can I select a random row using Eloquent or Fluent in Laravel framework? I know that by using SQL, …

php laravel random eloquent fluent
How to get a random value from dictionary in python

How can I get a random pair from a dict? I'm making a game where you need to guess a …

python random dictionary key
Retrieving a random item from ArrayList

I'm learning Java and I'm having a problem with ArrayList and Random. I have an object called catalogue which has …

java arraylist random
Generate random 5 characters string

I want to create exact 5 random characters string with least possibility of getting duplicated. What would be the best way …

php random
Generating Random Passwords

When a user on our site loses his password and heads off to the Lost Password page we need to …

c# passwords random
How to generate random number in Bash?

How to generate a random number within a range in Bash?

bash shell random
Best way to select random rows PostgreSQL

I want a random selection of rows in PostgreSQL, I tried this: select * from table where random() < 0.01; But some …

sql performance postgresql random