use the function which generate true 60% twice . if first time its true and second time false then its true .(probability .6 x .4 =.24 ) if first time its false and second time true then its false .(probability .4 x .6 =.24 ) rest if it is both true or both false then call the procedure again .(probability .6 x .6 + .4x.4 =.52 )
Thanks Rahul -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.