MyRandombetween two numbers


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. public static int myRadNumber(int min, int max){
  2. return (int)(Math.random() *((max - (-min) + min)))
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.