checking rand args - thanks @cyli