public OnPluginStart() { new num = GetRandomInt(13417, 95718); PrintToServer("Input: %d", num); decl String:buffer[10]; IntToString(num, buffer, sizeof(buffer)); new temp, len = strlen(buffer); for(new i = 0; i < len; i++) { for(new j = 0; j < len-i-1; j++) { if(buffer[j] < buffer[j+1]) { temp = buffer[j+1]; buffer[j+1] = buffer[j]; buffer[j] = temp; } } } num = StringToInt(buffer); PrintToServer("Output: %d", num); }