move the getRandom() check to `if (qs.isMemoState(3))`