public void testRandom(){
  ExtremityMonitor monitor=new ExtremityMonitor();
  Random random=new Random(42);
  for (int i=0; i < 1000; i++) {
    monitor.update(random.nextDouble());
  }
  assertTrue(monitor.getMin() < 0.1);
  assertTrue(monitor.getMax() < 1.0);
  assertTrue(monitor.getMin() >= 0.0);
  assertTrue(monitor.getMax() > 0.9);
}

public void testRandom ( ) { ExtremityMonitor monitor = new ExtremityMonitor ( ) ; Random random = new Random ( 42 ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { monitor . update ( random . nextDouble ( ) ) ; } assertTrue ( monitor . getMin ( ) < 0.1 ) ; assertTrue ( monitor . getMax ( ) < 1.0 ) ; assertTrue ( monitor . getMin ( ) >= 0.0 ) ; assertTrue ( monitor . getMax ( ) > 0.9 ) ; }
throws a bunch of random numbers between [ 0 , 1 ] at the monitor .
