"you have been sentenced to die tomorrow, but you're offered a way out...

you get given 12 red balls and 12 blue balls together with two urns, you can distribute these however you want amongst the two urns. When the executioner arrives tomorrow he will randomly select an urn and draw a ball from it, if its blue you live, red you die. All balls must be in the urns and no urn should be empty."

let k be the number of balls you put in the first urn,

let i be the number of blue balls you put in the first urn.

The code then needs to:

randomly select an urn, randomly select a ball.

it should do this N times and give an output of how many times you survive out of the N repetitions.

N, i and k dont have to be inputted by the user!

Thank you in advance.