Consistent object-oriented interface for generating random numbers