Sometimes rand(10) is 0.

Fixes a spurious test failure when the random number selected was zero,
causing the unique ID to not increment.