Blueprint: Convert Integer from Range to Percentage

I have a bone moving at random from an integer range between -30 to 30
Whenever it generates a random number, I would like to convert this into a percentage

So if it generates -30 the percentage will be 0
If it generates 0, the percentage will be 50%
If it generates 30, the percentage will be 100%

Is this possible?
Thanks

Yea just add 30 to the result, and do “result / 60 * 100” that way you will have the percentage.

Yeah DDemon is right:
To write it more precisely:

PercentageValue = (RandomNumber + 30) / (60*100);

Greetings Cloudy

Yep your more precise, :stuck_out_tongue: long time since I wrote an algorithm.