We apply a theorem due to G. Marsaglia to demonstrate that a popular pseudo-random number generator is not adequate in some circumstances to generate n-dimensional random points, n>2. This problem is particularly noxious when direction cosines are generated. We propose several solutions, among them a good generator that satisfies all statistical criteria.