Back to project page LucyTheMoocher.
The source code is released under:
MIT License
If you think the Android project LucyTheMoocher 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 com.lucythemoocher.util; //from w ww . j a v a 2 s . c om public class MathUtil { public static float sign(float x) { if ( x >= 0 ) { return 1; } else { return -1; } } public static int uniform(int begin, int end) { return (int)((end-begin+1)*Math.random()+begin); } }