Created
February 1, 2018 09:03
-
-
Save DaniCCardenas/26c6d93e8aeea894689790bac71300db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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