How do R's random-generation and distribution functions like the r/d/p/q family and set.seed work?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explain how R's distribution functions with the r, d, p and q prefixes differ and what set.seed does for random generation. It tests whether you can pick the right function for densities, tail probabilities and quantiles, and keep R simulations reproducible.