1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* <license>
* This file is part of the dis-Emi-A HaXe Library. Copyright © edA-qa mort-ora-y
* For full copyright and license information please refer to doc/license.txt.
* </license>
*/
package mathx;
/**
* Defines the form of a random number generator.
*
* Class "Random" has constructors for many of the standard
* generators
*
* HAXE: haXe's templates are like Java's and thus this class is not
* as useful as one would hope. One cannot determine at run-time
* which type of RandGen one has, which causes problems in TypeConvert
*/
interface RandGen<T>
{
/**
* Returns the next random item from this generator
*/
public function next() : Dynamic;
/**
* RandGen's must be convertible to Strings in a fashion that
* can be later parsed
*/
public function toString() : String;
}
|