Fix regression. Allow contant values in heuristic random