hedgewars/uRandom.pas
changeset 2599 c7153d2348f3
parent 1066 1f1b3686a2b0
child 2630 079ef82eac75
equal deleted inserted replaced
2598:e118329666ff 2599:c7153d2348f3
    17  *)
    17  *)
    18 
    18 
    19 unit uRandom;
    19 unit uRandom;
    20 interface
    20 interface
    21 uses uFloat;
    21 uses uFloat;
    22 {$INCLUDE options.inc}
    22 {$INCLUDE "options.inc"}
    23 {$INCLUDE proto.inc}
    23 {$INCLUDE "proto.inc"}
    24 
    24 
    25 procedure SetRandomSeed(Seed: shortstring);
    25 procedure SetRandomSeed(Seed: shortstring);
    26 function  GetRandom: hwFloat; overload;
    26 function  GetRandom: hwFloat; overload;
    27 function  GetRandom(m: LongWord): LongWord; overload;
    27 function  GetRandom(m: LongWord): LongWord; overload;
    28 function  rndSign(num: hwFloat): hwFloat;
    28 function  rndSign(num: hwFloat): hwFloat;