Changed to use a single random instance