LinkedIn interview question

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