Added generate num function which returns 1