rand example fixup