mirror of
https://github.com/dream-num/univer.git
synced 2026-10-02 04:24:34 +08:00
* refactor: normalize folder structures * fix: fix lint * fix: move not ts files * fix: fix import
15 lines
290 B
TypeScript
15 lines
290 B
TypeScript
export class Random {
|
|
protected _max: number;
|
|
|
|
protected _min: number;
|
|
|
|
constructor(max: number, min: number) {
|
|
this._max = max;
|
|
this._min = min;
|
|
}
|
|
|
|
next(): number {
|
|
return Math.trunc(Math.random() * (this._max - this._min) + this._min);
|
|
}
|
|
}
|