slot machine algorithm zqqe