Added the generation method as I needed to test a random thing and no longer had it