generalized linear scramble