simulate to a thousands simulations

This commit is contained in:
Julien Calixte
2023-07-25 00:37:50 +02:00
parent eaac5520e8
commit 00ccbe21a7
5 changed files with 101 additions and 23 deletions

View File

@@ -1,6 +1,9 @@
export const getMean = (data: number[]) =>
Math.round(100 * (sumElements(data) / data.length)) / 100
export const getRound = (data: number, total: number) =>
Math.round(100 * (data / total)) / 100
export const clone = (data: any) => JSON.parse(JSON.stringify(data))
export const shuffleArray = <T>(array: T[]) => {