Fix rand to random