ServiceNow interview question

Given a function which will return 1 or 0 with equal probability, write another function using the first function which returns 0 with 25% and 1 with 75% probability.

Interview Answer

Anonymous

Feb 8, 2019

Call the function twice and OR the result and return it.