Added console version, bug with random number generator.