Top "Random-seed" questions

A random-seed is used to initialize a pseudo-random number generator in many programming languages.

C# - Random number with seed

I have this code: var rand = new Random(0); for(int i = 0; i < 100; i++) { Console.WriteLine(rand.Next(0, 100)); } And program …

c# random random-seed
How do I stop set.seed() after a specific line of code?

I would like to end the scope of set.seed() after a specific line in order to have real randomization …

r random-seed
Set seed on Math.random()

I need to write some junit tests on Java code that calls Math.random(). I know that I can set …

java random random-seed
Difference between math.random() and math.randomseed() in Lua

I am working on game using Corona SDK with Lua as Programming Language . While getting random number from table , I …

lua random-seed
Is there an alternative to using time to seed a random number generation?

I'm trying to run several instances of a piece of code (2000 instances or so) concurrently in a computing cluster. The …

c random random-seed
c++ generate a good random seed for psudo random number generators

I am trying to generate a good random seed for a psudo-random number generator. I thought I'd get the expert's …

c++ random random-seed
Is java.util.Random really that random? How can I generate 52! (factorial) possible sequences?

I've been using Random (java.util.Random) to shuffle a deck of 52 cards. There are 52! (8.0658175e+67) possibilities. Yet, I've found …

java permutation random-seed random
Is set.seed consistent over different versions of R (and Ubuntu)?

I am currently running R version 3.1.0 (on Ubuntu 12.04 LTS) and as both my R version and my operating system is …

r ubuntu random-seed
postgres random using setseed

I would like to add a column with a random number using setseed to a table. The original table structure (…

postgresql random sample random-seed
Scala Random what does seed do when creating random object

I'm fairly new to scala so this might be a stupid question. I know when you do nextInt(seed) it …

scala random random-seed