Code to randomly choose an investment