Predefined generator values that give the max length sequence are taken from: https://en.wikipedia.org/wiki/Linear-feedback_shift_register#Some_polynomials_for_maximal_LFSRs
Create a PRBS or maximum lenqth sequence binary array.
!! Caution: Incorrect generator will cause issues. See scipy.signal.max_len_seq for proper generators based on sequence.
function max_len_seq input Integer seed[:] = {1, 0, 1}; input Integer generator[size(seed, 1) + 1] = {1, 1, 0, 1}; input Real bias = 0 "Bias to control middle value"; output Real y[integer(2^(size(seed, 1)) - 1)]; end max_len_seq;