A method and apparatus for using player input codes (e.g., numeric, biometric or physical) to affect the outcomes of electronic gambling devices, such as slot machines. The player inserts money into the slot machine and enters an input, e.g., a lucky number or biometric measurement, into a device attached externally to the slot machine. A central processing unit ("CPU") within the slot machine receives the input and directs a random number generator to produce a random number. The CPU retrieves a combination algorithm from an algorithm database and then applies the combination algorithm to the player number and the generated random number to form a combined value. The CPU looks up the combined value in a probability table to determine resulting reel positions. The CPU looks up the reel positions in a payout table to determine the amount of money won or lost by the player. If the player has won, the CPU directs a hopper controller to release the appropriate number of coins or tokens into a payout tray.