<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import java.util.*;

public class RandomBenchmark extends Benchmark {
    
    private Random random = new Random();

    public void benchmark() {
	Math.abs(random.nextInt());
    }

    public static void main(String[] args) {
	int count = Integer.parseInt(args [0]);
	
	long time = new MethodBenchmark().repeat(count);
	System.out.println(count + " random numbers generated in " + time + " milliseconds.");
    }
}
</pre></body></html>