view dwtx/dwtxhelper/Random.d @ 174:c6d7b1ea700b

First sample running
author Frank Benoit <benoit@tionex.de>
date Thu, 11 Sep 2008 00:32:24 +0200
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;
    }
}