
How to Select from a JavaScript Weighted List (NodeJS, Browser)
This article covers how to select a random item from a weighted list in JavaScript. It also contains an example of how to test and visualize the results using the command line or the browser.
Step 1. Create a project
To get started, create a new project. On a Mac