4.3b Random-distribution test labs
Source: Lab ideas from Computational Physics (Landau, Páez, Bordeianu), §4.4. Rewritten as original drills. Continues 4.3 Testing random distributions.
Use the chapter LCG only (r ← (1103515245 r + 12345) % 2³¹, then r/2³¹). Stubs fail until filled in. Averages can look fine while a lattice still fails the eye — pair the labs with the explorers at the bottom.
Formula refresh
Warm up: pick the matching equation among lookalikes (same walk as the theory lesson).
Labs
Draw uniforms from seed seed. For print
with 6 decimals, space-separated on one line.
Input: N seed.
Write-ups
Using “look”, “scatter”, and “lattice”, explain:
Why is a successive-pair scatterplot still required even if moments look good?
Minimum 3 words. Your answer must include: “look”, “scatter”, “lattice”.
Meet the writing requirements, then you can open the model answer.
Explorers
Next: 5.1 Differentiation.