Below is my function of node.js (I'm new to this), I would like to populate the array with random numbers (it can be zero as well), is there any faster way to do this? What am I doing?
QLearn.reset = function() {
for (var a=0; a<100; a++) {
for (var b=0; b<20; b++) {
for (var c=0; c<100; c++){
for (var d=0; d<QLearn.action; d++){
QL[a,b,c,d]=Math.random();
}
}
}
}