A projectile is launched from ground level with an initial velocity of v0 feet per second. Neglecting air resistance, its height
in feet t seconds after launch is given by s=-16t2+v0t. Find the time(s) that the projectile will (a) reach a height of 288 ft and (b) return to the ground when v0=144 feet per second.
The Math.random () function returns a floating-point, pseudo-random number in the range 0–1 (inclusive of 0, but not 1) with approximately uniform distribution over that range — which you can then scale to your desired range.