mwg API
Reference
Overview
Examples
Getting started
Design
FAQ
Preparing search index...
Random
weighted
Function weighted
weighted
(
weights
:
readonly
number
[]
)
:
number
|
null
an index into
weights
drawn in proportion to its weight, or
null
if nothing has any
Parameters
weights
:
readonly
number
[]
Returns
number
|
null
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Reference
Overview
Examples
Getting started
Design
FAQ
mwg API
Loading...
an index into
weightsdrawn in proportion to its weight, ornullif nothing has any