[...] prior to the loop that computes the results. Similarly, if you need to generate random numbers, fill an entire array of random values in a single call, rather than generating a few random values at a …