array length transform

... plus some tidying and some basic updates to the random stream