Random.next is deprecated

Jarrett Billingsley jarrett.billingsley at gmail.com
Thu Sep 11 19:04:40 PDT 2008


On Thu, Sep 11, 2008 at 9:53 PM, Sam Hu <samhu.samhu at gmail.com> wrote:
> Hi,
>
> In Tango I want to use Random.next(uint i) to generate a random number between(0,i) but the compiler told me the next(...) function is deprecated.So what is the equivalent function?
> Thanks,
> Sam
>

import tango.math.random.Kiss;

Kiss.shared.toInt(i)

Dumb name, but it's pretty much the same thing :)


More information about the Digitalmars-d-learn mailing list