This is independent of this PR, but this is bad. The CPU runs at 733MHz, so 1.36425648 nanoseconds per cycle.
GetTickCount is in milliseconds. So when this loop runs the value will probably be constant.
It's also not giving consistent values when running the test multiple times.
You should switch to a constant seed and a random function. pdclib implements srand and rand; it also implements rand_s but that can't be seeded, so it's not recommended here.
Triggered by PR review