Random.Range like (1,10), but if you get 1-3 then do something.

I’m trying to make a range of an int. Like random.range(1, 10) and if you got 1-3 then something happens, but I do not know how to do this. Thank you.

int result = Random.Range(0,10);//Random.Range with integers is exclusive, so min is 0 and max is 9
if(result <= 3) {
//do something
}