Making the number generator inline