Mercurial > projects > dwt2
comparison 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 |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
1 module java.util.Random; | |
2 | |
3 import java.lang.all; | |
4 static import tango.math.random.Kiss; | |
5 | |
6 class Random { | |
7 tango.math.random.Kiss.Kiss kiss; | |
8 | |
9 public this(int seed ){ | |
10 kiss.seed(seed); | |
11 } | |
12 public bool nextBoolean(){ | |
13 return kiss.toInt(2) is 0; | |
14 } | |
15 } | |
16 | |
17 |