A very basic implementation of the randrange function