Mit 'nem Modulo könntest du das Beispielsweiße einschränken:
zufall = rand() % 100

=> Zahlen von 0 bis 100.