Hi sc11 and welcome to the forum,

Try in E5 the formula
=RANDBETWEEN(1,G5)
and pull it down to the other yellow cells.