adding prolog:getrand and prolog:setrand builtins