โ† Qualcomm questions

Design a Lottery Machine

Filed under Qualcomm

The question

Design a Lottery Machine that generates non-repeating random numbers from 1 to N, eliminates the selected person, continues counting circularly from the last eliminated position until one winner remains, and logs all console operations.

No write-up yet. Related questions below have one.

Related Qualcomm questions

Collected from public candidate posts and coding forums. Updated Nov 2026.