Skip to content

Instantly share code, notes, and snippets.

@evild70
Last active August 29, 2015 14:20
Show Gist options
  • Save evild70/74ffc342b773d17af60a to your computer and use it in GitHub Desktop.
Save evild70/74ffc342b773d17af60a to your computer and use it in GitHub Desktop.
Array of Random numbers source http://jsbin.com/nezuqejolo
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