Android Open Source - jmjuanesFramework Mathm






From Project

Back to project page jmjuanesFramework.

License

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.

Java Source Code

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));
  }
}




Java Source Code List

jmjuanes.Config.java
jmjuanes.GameMain.java
jmjuanes.Screen.java
jmjuanes.core.GameData.java
jmjuanes.core.GameFrames.java
jmjuanes.core.GameLoad.java
jmjuanes.core.GameThread.java
jmjuanes.core.GameTouch.java
jmjuanes.core.GameView.java
jmjuanes.util.Mathm.java
jmjuanes.util.Ui.java