randomize based on a hash