Last active
August 29, 2015 14:20
-
-
Save evild70/74ffc342b773d17af60a to your computer and use it in GitHub Desktop.
Array of Random numbers source http://jsbin.com/nezuqejolo
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
var labels = []; | |
var times = function(n) { | |
return Array.apply(null, new Array(n)); | |
}; | |
var data = times(100).map(function(val, index) { | |
labels.push(index + 1); | |
// val = Math.round(Math.random() * 100); | |
val = Math.floor(Math.random() * (100 - 70 + 1)) + 70; | |
return val; | |
}); | |
// console.log(labels); | |
console.log(data); | |
// feel free to tell me how this is all wrong. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment