Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*==================================================================================================
- --------------------------------------------------------------------------------------------------
- [RandInt.java]
- Random integer generator.
- (c) Damion 'Phr0z3n.dev' Tapper, 2015.
- Email: [email protected]
- Website: L337Stuff.Blogspot.com
- --------------------------------------------------------------------------------------------------
- ==================================================================================================*/
- public class RandInt
- {
- int getRandInt(int low, int high)
- {
- return(((int)((high - low + 1) * (Math.random()))) + low);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment