Fix bug 3240, make all randomization values produce same basic type