Ian Martins a écrit :

> the api has four ways to get random numbers:

>

> Math.Random : Float

> Std.random(x:Int) : Int

> neko.Random.float() : Float

> neko.Random.int(max:Int) : Int

>

> is neko.Random needed? can Std.random(x) be moved into the Math class?

> is it possible to set the seed if you're not using neko?

Well, having Std.random() and Math.random() is just an old habit which

also matches the ECMA apis (the global random() function is in Std and

there is also Math.random())

Std.random is implemented in neko with neko.Random, so it's made

accessible as well.

I'm not sure there is something to remove here.

Nicolas

--

haXe - an open source web programming language

http://haxe.org