Random gradient background color If you dont try to calculate the remaining % then it seems to work as you expect