change the random type.