diff java/src/java/util/Random.d @ 12:bc29606a740c

Added dwt-addons in original directory structure of eclipse.org
author Frank Benoit <benoit@tionex.de>
date Sat, 14 Mar 2009 18:23:29 +0100
parents
children 9b96950f2c3c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/java/src/java/util/Random.d	Sat Mar 14 18:23:29 2009 +0100
@@ -0,0 +1,17 @@
+module java.util.Random;
+
+import java.lang.all;
+static import tango.math.random.Kiss;
+
+class Random {
+    tango.math.random.Kiss.Kiss kiss;
+
+    public this(int seed ){
+        kiss.seed(seed);
+    }
+    public bool  nextBoolean(){
+        return kiss.toInt(2) is 0;
+    }
+}
+
+