Say I have a Slaking that knows Sucker Punch and Facade. My foe has the ability Forewarn. Will Sucker Punch or STAB Facade be picked up? Also, what if there are no attacking moves? Will Dragon Rage get picked up over say Tackle (or other moves that do less than 40 damage.)? What if the move is Hidden Power, is that a good way to determine the power of your Hidden Power? What about Seismic Toss on a level 96 that also has Flamethrower? Many questions on Forewarn.
STAB is not taken into account, it's just the pure base power. hidden power does have a set power based off of IVs, and can be determined with the IV calculator. If 2 moves have the same power, one is randomly selected.