×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: user52534
Added: Aug 17, 2017 2:19 AM
Views: 2
Tags: no tags
  1.     public int rnd(int rnd){
  2.         Random rand = new Random();
  3.         int  n = rand.nextInt(rnd) + 1;
  4.     return n;
  5.     }