← Goldman Sachs questions

Generate 0-100 random number from 0-9 generator

Filed under Goldman Sachs

Given a function rand10() that returns a uniform random integer from 0 to 9, implement a function that returns a uniform random integer from 0 to 100.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

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