@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
50 lines • 1.64 kB
TypeScript
import { ArrayNumber2, ArrayNumber3, ArrayNumber4 } from "../types";
/**
* @return Random float between 0 and 1
*/
export declare function tgdCalcRandom(): number;
/**
* @return Random float between 0 and `max`
*/
export declare function tgdCalcRandom(max: number): number;
/**
* @return Random float between `min` and `max`
*/
export declare function tgdCalcRandom(min: number, max: number): number;
/**
* @return Random vector of 3 floats between 0 and 1
*/
export declare function tgdCalcRandom2(): ArrayNumber2;
/**
* @return Random vector of 3 floats between 0 and `max`
*/
export declare function tgdCalcRandom2(max: number): ArrayNumber2;
/**
* @return Random vector of 3 floats between `min` and `max`
*/
export declare function tgdCalcRandom2(min: number, max: number): ArrayNumber2;
/**
* @return Random vector of 2 floats between 0 and 1
*/
export declare function tgdCalcRandom3(): ArrayNumber3;
/**
* @return Random vector of 2 floats between 0 and `max`
*/
export declare function tgdCalcRandom3(max: number): ArrayNumber3;
/**
* @return Random vector of 2 floats between `min` and `max`
*/
export declare function tgdCalcRandom3(min: number, max: number): ArrayNumber3;
/**
* @return Random vector of 4 floats between 0 and 1
*/
export declare function tgdCalcRandom4(): ArrayNumber4;
/**
* @return Random vector of 4 floats between 0 and `max`
*/
export declare function tgdCalcRandom4(max: number): ArrayNumber4;
/**
* @return Random vector of 4 floats between `min` and `max`
*/
export declare function tgdCalcRandom4(min: number, max: number): ArrayNumber4;
//# sourceMappingURL=random.d.ts.map