how i can use rand and randbetween function