Add limit and offset options to random