UNPKG

magic-snowflakes

Version:
9 lines (8 loc) 298 B
/** * Get a random integer from the inclusive lower bound to the exclusive upper bound. */ export declare function randomInt(from: number, max: number): number; /** * Linear interpolate. */ export declare function interpolate(x: number, x1: number, x2: number, y1: number, y2: number): number;