Posts by Nuno Pinhal • 21 points
1 post
-
2
votes2
answers2961
viewsQ: Generate array with random values in Javascript
I want to generate an array with 10 type positions: var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; But I wanted the computer to choose 10 numbers from -9 to 9, to put inside this array.…
javascriptasked Nuno Pinhal 21