I have written this code:
$unique = 30
$uniquelow = (floor($unique/10)*10);
$uniquehigh = (ceil($unique/10)*10);
However when $unique = 30 , the uniquelow and unique high becomes the same. Could there somehow be a way to do this: Make $uniquelow a random number between 20-30, and $uniquehigh be $uniquelow + 10?
So the result in this case could be 23-33, 26-36 etc.
And if $unique = 40, the result could be 33-43, 36-46 etc.