We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a23f505 + 6ecf9b5 commit 5b64167Copy full SHA for 5b64167
src/views/dashboard/MainChart.js
@@ -29,7 +29,7 @@ const MainChart = () => {
29
return () => document.documentElement.removeEventListener('ColorSchemeChange', handleColorSchemeChange)
30
}, [chartRef])
31
32
- const random = () => Math.round(Math.random() * 100)
+ const random = (min = 0, max = 100) => Math.floor(Math.random() * (max - min + 1)) + min
33
34
return (
35
<>
0 commit comments