Sampling with while loop issue - Initialization always the same / resetting variable

You were indeed right that there was something wrong with my condition. I have fixed this now. With that fixed, is there no kinda hacky way to go about the rest with the while loop?
Fix done for the condition checker: (also actually gave it a name that matches the functionality)

def c_below_1(count):
    return count.tag.test_value < 1

I’m thinking that maybe one could change the starting value of the Bernoulli inside of the loop to be a random number, instead of always being 0. Is that possible? (Just in the sense of changing the start value. I could imagine that there are no known ways to use while loops based on your first reply).