Notice this: the total number of random points generated is n. However, only m of those lie within the spherical volume. The spherical volume we obtain is equal to times the volume of a cube whose side is 2R. It’s interesting to see what this fraction is.