made rng constant
corrected character domain