add an assert in random_generate_scenario

it's better than segfault.