In JavaScript/jQuery I'm generating value that can vary but is usually something like 0.12 or 0.25.
I want to generate an array that has a set amount of values (around 10 values or so) and include the number above at the start or end of the array. I want these values to decrease to 0 so for example -
var values = [0, 0.02, 0.04, 0.06, 0.08, 0.10, 0.12]
I'm just not quite sure how to acheive this.
Thanks