Finish first demo scene
This commit is contained in:
parent
36f01c6716
commit
77d5938b4b
4 changed files with 43 additions and 15 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue