Write a program with appropriate math class methods to calculate the hypotenuse of 2 right triangles. The values of each side of both triangles should be randomly generated using Math.random?