NativeRandom.hx 517 B

1234567891011121314151617181920212223
  1. package cpp;
  2. @:buildXml('<include name="${HXCPP}/src/hx/libs/std/Build.xml"/>')
  3. extern class NativeRandom
  4. {
  5. @:native("_hx_std_random_new")
  6. public static function random_new() : Dynamic;
  7. @:native("_hx_std_random_set_seed")
  8. public static function random_set_seed(handle:Dynamic,v:Int) : Void;
  9. @:native("_hx_std_random_int")
  10. public static function random_int(handle:Dynamic,max:Int) : Int;
  11. @:native("_hx_std_random_float")
  12. public static function random_float(handle:Dynamic) : Float;
  13. }