random(4,7) -- This will generate a float between 4 adn 6 (because the upper value isn't included in the generation, therefore add an extra number if you want to include it).
Also: floor(random(4,7)) -- This will generate whole numbers between 4 and 6 (same thing with the upper number applies here).