enhanced number generator: negativ values and print error