Added left-hand rule, right-hand rule, and rand()