mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-06 09:23:18 +08:00
Add Weighted Random cover.
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
# Weighted Random
|
||||
|
||||

|
||||
|
||||
## What is "Weighted Random"
|
||||
|
||||
Let's say you have a list of **items**. Item could be anything. For example, we may have a list of fruits and vegetables that you like to eat: `[ '🍌', '🍎', '🥕' ]`.
|
||||
|
BIN
src/algorithms/statistics/weighted-random/images/cover.png
Normal file
BIN
src/algorithms/statistics/weighted-random/images/cover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 296 KiB |
Reference in New Issue
Block a user