Added some handy list processing stuff and fixed a bug in rand
Better illustration of laziness.