now including a randomizer with an offset which can accomodate padding if required