@japofc/baileys - v2.4.7
GitHub
npm
Preparing search index...
randomBool
Variable randomBool
Const
randomBool
:
(
p
?:
number
,
opts
?:
{
random
?:
()
=>
number
}
)
=>
boolean
Weighted coin: true with probability
p
(default 0.5).
Type Declaration
(
p
?:
number
,
opts
?:
{
random
?:
()
=>
number
}
)
:
boolean
Parameters
Optional
p
:
number
Optional
opts
:
{
random
?:
()
=>
number
}
Returns
boolean
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
GitHub
npm
@japofc/baileys - v2.4.7
Loading...
Weighted coin: true with probability
p(default 0.5).