First page Back Continue Last page Overview Graphics

Exercise

Change the previous Generator so that it increments seed values, beginning with a start value „secret_key = 0“. The generator has to yield an ascending list with “length” values for every (incremented) „secret_key“.

In other words: We calculate the first sequence of “length” numbers, which are ascending.

We get:

(6847, [4, 12, 40, 65, 68, 74, 76])

(7084, [31, 36, 51, 62, 74, 88, 90])

(8222, [2, 15, 24, 83, 86, 92, 97])

(8251, [4, 22, 37, 38, 40, 54, 62])

(14752, [1, 26, 34, 40, 58, 79, 83])

(14987, [37, 46, 57, 62, 70, 78, 84])

(24601, [6, 11, 64, 67, 76, 95, 99])

(31316, [15, 32, 57, 68, 86, 89, 98])

(33586, [41, 57, 75, 89, 89, 97, 99])

(37673, [17, 22, 34, 54, 59, 68, 83])