Monte Carlo calculations of the volume of n-dimensional sphere of raduis 1

Simple illustration of the Monte Carlo method
To illustrate how the concept of random numbers in the Monte Carlo method works, try to calculate the volume of the n-dimensional sphere and see how the random number generator works RN.

Dimension=