/* If mRandomInput is TRUE, the routine directly calls rand(). Otherwise, the routine returns the pre-generated numbers. */
UINTN Rand(VOID)
/* If mRandomInput is TRUE, the routine directly calls rand(). Otherwise, the routine returns the pre-generated numbers. */
UINTN Rand(VOID)
{
  if (mRandomInput) {
    return rand ();
  } else {
    return mNumbers[mNumberIndex++ % (mNumberCount - 1)];
  }
}