Take random_seed for on-off generator as argument.