The posted code doesn’t show the repeated calls, but I assume you are just executing the 5 lines of code in a REPL multiple times. If so, then the different noise levels would be expected, since you are using global variables for the seeds (s and b), which are updated in each call to __getitem__.