Added randomized input generator.