Randomly generated test cases with plotting.