Reformat code
This commit is contained in:
parent
7b9f4469c8
commit
d48786971b
22 changed files with 85 additions and 122 deletions
|
|
@ -7,9 +7,7 @@ export class Random {
|
|||
|
||||
public get next(): number {
|
||||
// result is in [0, 1)
|
||||
return (
|
||||
((2 ** 31 - 1) & (this.seed = Math.imul(48271, this.seed))) / 2 ** 31
|
||||
);
|
||||
return ((2 ** 31 - 1) & (this.seed = Math.imul(48271, this.seed))) / 2 ** 31;
|
||||
}
|
||||
|
||||
public choose<T>(list: Array<T>): T {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue