Add ability to multiply by custom factor

Update confetti.js
Update demo.js
Generalize `randomFrom` method, add test, add documentation