Chapter 6 - Pg 177 Statistical Analysis
I downloaded the chapter programs from this website and ran the Statistical Analysis of Array Data program, and instead of random numbers, I get exactly what is displayed in figure 6-2. It's supposed to generate random numbers, but I get the same results on every run. What's wrong with the line...
float randNum = (float) rand() / RAND_MAX; // From 0.0 to 1.0