From 7224c98766e93862fc2be09226c7b65e457acb00 Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Mon, 17 Dec 2007 15:43:51 -0700 Subject: [PATCH] Trivial implementation of java.util.Random --- classpath/java/util/Random.java | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 classpath/java/util/Random.java diff --git a/classpath/java/util/Random.java b/classpath/java/util/Random.java new file mode 100644 index 0000000000..f5388ae400 --- /dev/null +++ b/classpath/java/util/Random.java @@ -0,0 +1,7 @@ +package java.util; + +public class Random { + public int nextInt() { + return (int)(Math.random()*Integer.MAX_VALUE); + } +}