I'm trying to do a quick excel sim of the monty hall problem. I've used RANDBETWEEN(1,3) in columns B and and F for the initial guess and the actual winning door however I need to determine which door is opened. Basically my question is how do I make excel do my title, pick a random number between 1 and 3 but if the value picked matches the value in B2 or F2 then pick again.
I tried just writing out all the possibilities but got stuck here
=if(and(B2=1,F2=1),RANDBETWEEN(2,3),if(and(b2=1,f2=2),3,if(and(b2=1,f2=3),2,if(and(b2=2,f2=1),3,if(and(b2=2,f2=2),RANDBETWEEN(...
because I want to pick randomly either the number 1 or the number 3 and I don't know of a way to make excel do that.
Any ideas?
I tried just writing out all the possibilities but got stuck here
=if(and(B2=1,F2=1),RANDBETWEEN(2,3),if(and(b2=1,f2=2),3,if(and(b2=1,f2=3),2,if(and(b2=2,f2=1),3,if(and(b2=2,f2=2),RANDBETWEEN(...
because I want to pick randomly either the number 1 or the number 3 and I don't know of a way to make excel do that.
Any ideas?