from numpy import*f=lambda n,t,s:[poly1d(append(random.randint(0,251,t-1),s))(i+1)%251for i in range(n)]print(f(6,3,230))
Standard input is empty
[205, 127, 4, 115, 138, 170]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!