Mercurial > projects > dwt-addons
view dwtx/dwtxhelper/Random.d @ 200:eb3414669eb0 default tip
fix for dmd 1.041 and tango 0.99.8
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 28 Mar 2009 03:09:57 +0100 |
parents | 86617aa6b5dd |
children |
line wrap: on
line source
module dwtx.dwtxhelper.Random; 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; } }