Changed generate method signature
Except and begining of InRange