LinkedIn Interview Question

How to generate a uniform06 number using a nonuniform distributed function?