Skip to content

Instantly share code, notes, and snippets.

@DaniCCardenas
Created February 1, 2018 09:03
Show Gist options
  • Save DaniCCardenas/26c6d93e8aeea894689790bac71300db to your computer and use it in GitHub Desktop.
Save DaniCCardenas/26c6d93e8aeea894689790bac71300db to your computer and use it in GitHub Desktop.
static void EjemploRandom1()
{
for (int i = 0; i <= 10; i++)
{
var seed = Environment.TickCount;
var random = new Random(seed);
var value = random.Next(0, 5);
Console.WriteLine($"Iteración {i} - semilla {seed} - valor {value}");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment