better controller handling of parameters for random