Coding

Let's say we only have a random number generator at our disposal. How would you go about generating i.i.d. draws from a given distribution X?

Machine Learning Engineer

Google

Roblox

Twitter

Bolt

Grab

Juniper Networks

Did you come across this question in an interview?

Your answer

Try Free AI Interview

Google logo

Google

Product Manager

Prepare for success with realistic, role-specific interview simulations.

Product Strategy
Meta logo

Meta

Product Manager

Prepare for success with realistic, role-specific interview simulations.

Product Sense
Meta logo

Meta

Engineering Manager

Prepare for success with realistic, role-specific interview simulations.

System Design
Amazon logo

Amazon

Data Scientist

Prepare for success with realistic, role-specific interview simulations.

Behavioral
  • Let's say we only have a random number generator at our disposal. How would you go about generating i.i.d. draws from a given distribution X?
  • If we only had a random number generator, what method would you use to generate i.i.d. draws from distribution X?
  • How would you generate i.i.d. draws from a specific distribution X, given we only have access to a random number generator?
  • Let's assume we can only use a random number generator. What steps would you take to generate i.i.d. draws from distribution X?
  • With the limitations of only having a random number generator, what approach would you take to generate i.i.d. draws from distribution X?
  • If you could only use a random number generator, how would you generate independent and identically distributed draws from distribution X?
  • Given we only have a random number generator, how could you generate i.i.d. draws from a specific distribution X?
  • If we were limited to a random number generator, what technique would you use to generate i.i.d. draws from distribution X?
  • What steps would you take if you had to generate i.i.d. draws from a given distribution X when only having access to a random number generator?
  • How would you approach generating i.i.d. draws from distribution X, keeping in mind that we only have a random number generator available?
  • Write a code to generate independent and identically distributed (i.i.d.) draws from a given distribution X given that we only have access to a random number generator.

Interview question asked to Machine Learning Engineers interviewing at Roblox, Motorola Solutions, Siemens and others: Let's say we only have a random number generator at our disposal. How would you go about generating i.i.d. draws from a given distribution X?.