Bank of America interview question

How to generate a data sample give a distribution