Created
April 12, 2018 00:47
-
-
Save vmussak/6c69d51b612c86b40c67e1f103c2a127 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
using System; | |
namespace BlazorExample.Services | |
{ | |
public class GeradorDeNumeros | |
{ | |
public int GerarNumero(int numeroInicial, int numeroFinal) | |
{ | |
var random = new Random(); | |
return random.Next(numeroInicial, numeroFinal); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment