This may sound easy but i am weak in math. I would like to get the value of x that must follow the condition
The randomised variable x must be larger than radius
The randomised variable x must be less than (innerWidth - radius)
var x = Math.random() * innerWidth ;
var radius = 20;
Can someone pls help me. I am sure it is more of a mathematics than my coding skills.
[enter image description here][1]
[1]Image Stuck at the screen : https://i.stack.imgur.com/Ib1km.png