1 contributor
Like
Install random as a package?
Copied
npm i @bit/joshk.jotils.random
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraftmodifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
No preview available
chevron_left
chevron_right
random (
max:
) : number
number
random number between 0 and 1, or between 0 and max parameter(optional)
Examples
Argument
max:
number
max parameter(optional)
Returns
number
random number
Test Summary
random return random number between 0 and 1 | Pass |
random return random number between 0 and max parameter | Pass |