Generate random within cerain ranges

I would like to make something like this:   a random color generator based on HSL color format with upper and lower limits. so generating a random nr between 40-85% for instance. I cant really find out much about generate random in mendix besides this post pointing towards the documentation or Random and Round   edit 1: going to give this JS a go  
1 answers

this seems to be working

make a little helper utility MF, :D 


floor(random() * ($Max - $Min +1)) + $Min