Get Random Value In Array Javascript Iterations Matlab Simulink