1 package nmp.util; 2 3 public class Random 4 extends java.util.Random 5 { 6 public Random( long seed) { 7 super( seed); 8 } 9 /*** 10 * Returns an integer between 0 and max - 1 11 */ 12 public int nextInt( int max) { 13 return Math.abs( nextInt()) % max; 14 } 15 }

This page was automatically generated by Maven