Mercurial > projects > dwt2
view 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 source
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; } }