โ† Practo questions

Implement a 6-sided dice using a coin toss function

Filed under Practo

The question

Given a function toss() returning head or tail with equal probability, write a function for a dice returning 1-6 with equal probability without using a random function.

No write-up yet. Related questions below have one.

Related Practo questions

Collected from public candidate posts and coding forums. Updated Nov 2026.