Added randrdot function