Created
May 26, 2017 00:48
-
-
Save elado/609f84e2e682e853be6ced332cab39e4 to your computer and use it in GitHub Desktop.
cryptocurrency.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let valueInUSD = 1 | |
setInterval(() => { | |
valueInUSD = Math.max(valueInUSD + (Math.random() >= 0.5 ? 1 : -1) * Math.random() / (5 * Math.random()), 0.1) | |
console.log('valueInUSD', valueInUSD) | |
}, 10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment