lcg=: adverb define 0 m lcg y NB. default seed of 0 : 'a c mod'=. x: m }. (mod | c + a * ])^:(