โ† CarWale questions

Design f12x from f6x

Filed under CarWale

The question

Given a function f6x() that generates numbers 1 to 6 with equal probability, design a function f12x() that generates numbers 1 to 12 with equal probability.

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

Related CarWale questions

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