What does seeding with np.random.seed() or default_rng(seed) do, and why does it matter for reproducibility?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what seeding a NumPy random generator does, comparing the legacy global np.random.seed() with an independent Generator from default_rng. Tests understanding of pseudo-random state, reproducible experiments and the common ways seeding fails to make results repeatable.