Make sure you don't have any other class called RandomGenerator in the same directory as test.class (and, please, rename that to Test.class).
acm.util.RandomGenerator is not a standard Java class, so anyone wanting to help would be assisted by
a link to its API documentation.