Winner Selection Algorithms

After an activity ends, the platform selects winners using one of four algorithms specified for each prize.

Who enters the draw#

Before an algorithm runs, the platform builds a pool - the list of participants a given prize will be drawn among. The pool depends on whether the prize is tied to a marker:

Prize setting Who enters the pool
A marker is selected Only participants who earned that marker, meaning they completed every condition it contains
"Everyone who joined the activity" Everyone who entered the activity, including those who completed no conditions

The pool is computed per prize, so one activity can hold both a "for those who met the conditions" prize and a consolation prize "for everyone".

If a prize is meant to depend on conditions but no marker is selected, those conditions become decorative: participants will complete them, and it will not affect the draw. See A prize with no marker.

Random Selection (Random)

Winners are selected randomly among the participants in the prize's pool (see Who enters the draw).

How it works:

  1. The platform builds a list of confirmed participants
  2. It generates a random key (seed) using a cryptographically secure generator (RandomNumberGenerator, CSPRNG)
  3. Based on the seed, it shuffles the participant list and takes the first N
  4. The seed is stored in the database - in case of disputes, the organizer can request a verification of the results

Best for: giveaways where fairness and randomness matter.

First N (First Come)

The first N participants who met the conditions win, based on the time the marker was received.

Best for: promotions with a limited quantity of goods.

Top by Result (TopScore)

The top N participants of a mini-game with the best personal record (PersonalBest) over the entire duration of the activity become the winners.

Best for: game-based activities, where skill matters more than luck.

Best Comment (BestComment)

The top N participants by the number of likes on their comment under the activity's post become the winners.

Available only for activities on VKontakte.

Best for: contests for the best idea, review, or creative submission.