This tag is for questions pertaining to random numbers and their generators, whether pseudo-random or truly random.
What is the difference between Math.random() * n and Random.nextInt(n) where n is an integer?
java randomI have two numpy arrays of different shapes, but with the same length (leading dimension). I want to shuffle each …
python numpy random shuffle numpy-ndarrayHow do I take an efficient simple random sample in SQL? The database in question is running MySQL; my table …
mysql sql postgresql randomI'd like to generate random unique strings like the ones being generated by MSDN library.(Error Object), for example. A …
c# randomI need a quick algorithm to select 5 random elements from a generic list. For example, I'd like to get 5 random …
c# algorithm collections random elementI need to generate random numbers within a specified interval, [max;min]. Also, the random numbers should be uniformly distributed …
c++ randomIs there a way to generate a random number based on a min and max? For example, if min was 1 …
php security randomTo generate a random number between 3 and 10, for example, I use: rand(8) + 3 Is there a nicer way to do this (…
ruby random range