You need to assign the random value to a variable, so it is only generated once. Then you compare the one random value to decode which range it falls into. You should really use Else as well, so the compares stop when the correct value is found.
You need int(random(5))+1 to get a range of 1 to 5. Or, int(random(1,6)).