Separate Client Portal & Dashboard
This commit is contained in:
13
frontend/dashboard/src/_mock/funcs.ts
Normal file
13
frontend/dashboard/src/_mock/funcs.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
export function randomNumber(number: number) {
|
||||
return Math.floor(Math.random() * number) + 1;
|
||||
}
|
||||
|
||||
export function randomNumberRange(min: number, max: number) {
|
||||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
}
|
||||
|
||||
export function randomInArray(array: any) {
|
||||
return array[Math.floor(Math.random() * array.length)];
|
||||
}
|
||||
Reference in New Issue
Block a user