implement iotaRan