Generating random values in increasing order

Thanks for the reply, Dave. However, I couldn’t understand the mechanics of the construct “const’” and I am just curious to know how it helped arrive at the solution.

Could you please briefly explain how the const’ construct is used in this context? The LRM doesn’t give much explanation on the same.

Thanks and Regards,