Files
artcraft/frontend/util.ts
T
Brandon Thomas d9c315fc28 animation, part 2
- minify flag for webpack
- add second animation
- fix existing animation (transition between stop and idle)
- abstraction of animation code into new class
2016-11-04 02:41:04 -04:00

8 lines
244 B
TypeScript

// Copyright (c) 2016 Brandon Thomas <bt@brand.io, echelon@gmail.com>
export function getRandomInt(min: number, max: number) : number {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min)) + min;
}