Added random seeding and fucked up whitespace.