Returns random integer seeded with hashCode and less than max
max
int randomIn(int max) => Random(hashCode).nextInt(max);