Those three will be the primary, secondary, and hidden abilities, but I added a one in three chance that instead of giving out an ability, the secondary slot gives out “N/A.” It's entirely possible for a Pokemon to get the same ability in multiple slots, like Pressure / N/A | Pressure, and in cases like that we'll just drop one and say Pressure is its only ability as opposed to rerolling. The sixth might be changed a bit if the result is off by 1 or 2 from 600, but those six numbers will be our stats. Our new number will be divided by 6, rounded, then added or subtracted from each of our starting numbers.
The sum of those will be found, then 600 will be subtracted from that.