Back to project page jmjuanesFramework.
The source code is released under:
MIT License
If you think the Android project jmjuanesFramework listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package jmjuanes.util; /*from w w w .j a va2 s. co m*/ public class Mathm { //Funcion que devuelve un numero entre [Min, Max] public static float Random(int Min, int Max) { return Min + (float)(Math.random() * ((Max - Min) + 1)); } //Funcion que devuelve un numero entero entre [Min, Max] public static int RandomInt(int Min, int Max) { return Min + (int)(Math.random() * ((Max - Min) + 1)); } }