rndExt solution