Las Vegas Search

element = 0
found = 0
while found == 0:
    random = DiscreteUniform(0, 20)
    if random == element:
        found = 1
    end
end