Added random, and fixed a lot of stupid errors.