Created
February 24, 2012 22:07
-
-
Save everblut/1904092 to your computer and use it in GitHub Desktop.
Randoms
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
import java.lang.Math; | |
public class Randoms { | |
public static int NumerosAleatorios(int Min, int Max){ | |
return (Min + (int)(Math.random() * ((Max-Min) + 1))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment