This is how you can do it!
Create a global variable lets say Advantage or powerUp
Condition -: The player has object or object variable has [some value]
Keyboard press "E"
Action -: set variable advantage random(0,9)
Then compare PowerUp value and set conditions for each power up or advantage values
well for more check out the capx r166 ver.