| A Helper class that returns the Random values
using java.util.Random class. It is a singleton
instance, and all functions in Pegasus call it
to get the random value. The singleton ensures
that the number returned is random as compared
to previous values. If this is not used and one
ends up doing a new Random(), all the calls effectively
end up setting the same seed value, nad by extension
one gets the same value. Using just one Random object
we hope to bypass the problem.
Copyright: Copyright (c) 2002
Company: USC/ISI
author: Gaurang Mehta author: Karan Vahi version: $Revision: 50 $ |