Stock-market simulators let people learn and experiment, as well as try out risky bets.