Split generation into random and deterministic