Skip to content

[lln_clt.md] Update np.random → Generator API#738

Merged
HumphreyYang merged 2 commits into
mainfrom
update-rng-lln-clt
May 21, 2026
Merged

[lln_clt.md] Update np.random → Generator API#738
HumphreyYang merged 2 commits into
mainfrom
update-rng-lln-clt

Conversation

@Chihiro2000GitHub
Copy link
Copy Markdown
Contributor

Summary

This PR migrates legacy NumPy random API usage in lln_clt.md to the Generator API as part of QuantEcon/meta#299.

Details

  • In the lln_ex2 exercise description, replaced np.random.rand() with rng = np.random.default_rng() and rng.random().
  • The code block is a static (non-executable) python3 example used to illustrate Bernoulli sampling. The mathematical reasoning in the exercise and its solution remains unchanged.
  • No fixed seed was introduced (the original code had none).
  • No Numba-related code exists in this file.

Hi @mmcky and @HumphreyYang, I'd be grateful if you could take a look when you have time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 18, 2026

Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit a33cd11
🔍 Latest deploy log https://app.netlify.com/projects/taupe-gaufre-c4e660/deploys/6a0e9dba47fcc2000842e926
😎 Deploy Preview https://deploy-preview-738--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 18, 2026

@github-actions github-actions Bot temporarily deployed to pull request May 18, 2026 06:23 Inactive
@github-actions github-actions Bot temporarily deployed to pull request May 18, 2026 06:24 Inactive
@github-actions github-actions Bot temporarily deployed to pull request May 21, 2026 06:00 Inactive
@github-actions github-actions Bot temporarily deployed to pull request May 21, 2026 06:01 Inactive
@HumphreyYang HumphreyYang merged commit c162978 into main May 21, 2026
7 checks passed
@HumphreyYang HumphreyYang deleted the update-rng-lln-clt branch May 21, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants