X585: flipThreeHeads

This method simulates flipping a fair coin. The coin is flipped repeatedly until three heads are seen. The method takes an integer parameter, which specifies the seed for the random number generator. Further, the method records the result of each flip and returns the results as a String. A call to this method may return “TTTHTHH”.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.