Random Achievement Generator

Type /rag to Generate a Random Achievement to Complete!

File Details

RandomAchievementGenerator.zip

  • R
  • Nov 1, 2025
  • 3.56 KB
  • 54
  • 11.2.5
  • Retail

File Name

RandomAchievementGenerator.zip

Supported Versions

  • 11.2.5

Revision Summary: Achievement Selection Algorithm Update

Overview:
Following player testing (specifically with a user possessing only five uncompleted achievements) multiple updates were implemented to enhance the reliability and efficiency of the achievement selection logic within the addon.


Previous Implementation:
The original algorithm relied on an internal random number generator to iterate through the complete achievement pool. After five unsuccessful attempts to locate an uncompleted achievement, the routine would terminate and return an error state. This approach proved inefficient for players with a limited number of remaining achievements, as the probability of repeated “completed” selections increased substantially.


Updated Implementation:
The revised system now performs a full scan of the player’s achievement data upon the initial login or after any UI reload. During this initialization phase, the addon compiles a dedicated “Uncompleted Achievement List” containing only the achievements that have not yet been completed by the player.

When a random achievement is requested, the system selects directly from this pre-filtered dataset, ensuring that every output corresponds to an uncompleted achievement.

This modification significantly improves performance, eliminates redundant random checks, and guarantees compatibility even for high-achievement players with minimal remaining objectives.