Finish first demo scene

This commit is contained in:
schmelczerandras 2020-09-16 22:05:49 +02:00
parent 36f01c6716
commit 77d5938b4b
4 changed files with 43 additions and 15 deletions

View file

@ -15,4 +15,8 @@ export abstract class Random {
t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
}
public static getRandomInRange(from: number, to: number): number {
return from + Random.getRandom() * (to - from);
}
}