Updated loop order caching to use random, fixed a typo. Also added some other examples.