fixup! added random function