René's URL Explorer Experiment


Title: Fix random.randint() with negative numbers by greatsong · Pull Request #215 · vpython/glowscript · GitHub

Open Graph Title: Fix random.randint() with negative numbers by greatsong · Pull Request #215 · vpython/glowscript

X Title: Fix random.randint() with negative numbers by greatsong · Pull Request #215 · vpython/glowscript

Description: Contribute to vpython/glowscript development by creating an account on GitHub.

Open Graph Description: On glowscript.org, randint(-2, 2) never returns -2 and returns 0 about twice as often as the other values. With both bounds negative it goes out of range: randint(-5, -1) can return 0. This is easy...

X Description: On glowscript.org, randint(-2, 2) never returns -2 and returns 0 about twice as often as the other values. With both bounds negative it goes out of range: randint(-5, -1) can return 0. This is easy...

Opengraph URL: https://github.com/vpython/glowscript/pull/215

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/*id(.:format)
route-controllerpull_requests
route-actionshow
fetch-noncev2:2310f91b-33fd-a6b2-4a5d-ad2267e42351
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id87F2:133248:729666:9C7062:6B0079D0
html-safe-nonce7fd2d5fba94c8f8371fa08cc88288b275fac6007ba2f1d04e3bcd5863adc248c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0YyOjEzMzI0ODo3Mjk2NjY6OUM3MDYyOjZCMDA3OUQwIiwidmlzaXRvcl9pZCI6IjY3MDcwNjI2OTQ0Njc2NTAwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3442620afcfe7e870fdc79cf21fd0d477c749566ebecaea5b1ede3a23a6921c7
hovercard-subject-tagpull_request:5076963387
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/vpython/glowscript/pull/215
twitter:imagehttps://opengraph.githubassets.com/3c63df7262f3538583126fa2ff8ee11b55f1e818ff345f2bcdfbbc0a9ca7ff34/vpython/glowscript/pull/215
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3c63df7262f3538583126fa2ff8ee11b55f1e818ff345f2bcdfbbc0a9ca7ff34/vpython/glowscript/pull/215
og:image:altOn glowscript.org, randint(-2, 2) never returns -2 and returns 0 about twice as often as the other values. With both bounds negative it goes out of range: randint(-5, -1) can return 0. This is easy...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegreatsong
hostnamegithub.com
expected-hostnamegithub.com
None82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83
turbo-cache-controlno-cache
go-importgithub.com/vpython/glowscript git https://github.com/vpython/glowscript.git
octolytics-dimension-user_id1280757
octolytics-dimension-user_loginvpython
octolytics-dimension-repository_id187905631
octolytics-dimension-repository_nwovpython/glowscript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id187905631
octolytics-dimension-repository_network_root_nwovpython/glowscript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released1bc2aa1939001689f5ce935982c10a6138f745c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/vpython/glowscript/pull/215#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvpython%2Fglowscript%2Fpull%2F215
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvpython%2Fglowscript%2Fpull%2F215
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow&source=header-repo&source_repo=vpython%2Fglowscript
Reloadhttps://github.com/vpython/glowscript/pull/215
Reloadhttps://github.com/vpython/glowscript/pull/215
Reloadhttps://github.com/vpython/glowscript/pull/215
vpythonhttps://github.com/vpython
glowscripthttps://github.com/vpython/glowscript
Codehttps://github.com/vpython/glowscript
Issues9 (9)https://github.com/vpython/glowscript/issues
Pull requests2 (2)https://github.com/vpython/glowscript/pulls
Actionshttps://github.com/vpython/glowscript/actions
Projectshttps://github.com/vpython/glowscript/projects
Security and qualityhttps://github.com/vpython/glowscript/security
Insightshttps://github.com/vpython/glowscript/insights
https://github.com/vpython/glowscript
sspicklehttps://github.com/sspickle
vpython:masterhttps://github.com/vpython/glowscript/tree/master
greatsong:fix-randint-negativehttps://github.com/greatsong/glowscript/tree/fix-randint-negative
Conversationhttps://github.com/vpython/glowscript/pull/215
Commits1 (1)https://github.com/vpython/glowscript/pull/215/commits
Checkshttps://github.com/vpython/glowscript/pull/215/checks
Files changedhttps://github.com/vpython/glowscript/pull/215/files
Fix random.randint() with negative numbershttps://github.com/vpython/glowscript/pull/215#top
sspicklehttps://github.com/sspickle
vpython:masterhttps://github.com/vpython/glowscript/tree/master
greatsong:fix-randint-negativehttps://github.com/greatsong/glowscript/tree/fix-randint-negative
https://github.com/greatsong
greatsonghttps://github.com/greatsong
Oct 29, 2026https://github.com/vpython/glowscript/pull/215#issue-6110189730
kovidgoyal/rapydscript-ng#185https://github.com/kovidgoyal/rapydscript-ng/issues/185
kovidgoyal/rapydscript-ng#193https://github.com/kovidgoyal/rapydscript-ng/pull/193
2debbe4https://github.com/vpython/glowscript/commit/2debbe4b9928e39d5aa20d0c2d3341314f3bcb8e
@BruceSherwoodhttps://github.com/BruceSherwood
@sspicklehttps://github.com/sspickle
Please reload this pagehttps://github.com/vpython/glowscript/pull/215
https://github.com/greatsong
Fix random.randint() with negative numbershttps://github.com/vpython/glowscript/pull/215/commits/2c8dc3dc9161808687766d501d58f9ce89416b2d
2c8dc3dhttps://github.com/vpython/glowscript/pull/215/commits/2c8dc3dc9161808687766d501d58f9ce89416b2d
2debbe4https://github.com/greatsong/glowscript/commit/2debbe4b9928e39d5aa20d0c2d3341314f3bcb8e
kovidgoyal/rapydscript-ng#185https://github.com/kovidgoyal/rapydscript-ng/issues/185
https://github.com/sspickle
sspicklehttps://github.com/sspickle
Oct 31, 2026https://github.com/vpython/glowscript/pull/215#issuecomment-6542045173
@greatsonghttps://github.com/greatsong
Claude Codehttps://claude.com/claude-code
Please reload this pagehttps://github.com/vpython/glowscript/pull/215
https://github.com/sspickle
sspicklehttps://github.com/sspickle
Oct 31, 2026 https://github.com/vpython/glowscript/pull/215#ref-pullrequest-6134344495
deps: urllib3 2.8.0, Werkzeug 3.1.9, certifi 2026.10.23 #216 https://github.com/vpython/glowscript/pull/216
https://github.com/sspickle
sspicklehttps://github.com/sspickle
Oct 31, 2026 https://github.com/vpython/glowscript/pull/215#pullrequestreview-5722546650
View reviewed changes https://github.com/vpython/glowscript/pull/215/files/2c8dc3dc9161808687766d501d58f9ce89416b2d
sspicklehttps://github.com/sspickle
https://github.com/vpython/glowscript/pull/215#pullrequestreview-5722546650
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Claude Codehttps://claude.com/claude-code
Please reload this pagehttps://github.com/vpython/glowscript/pull/215
https://github.com/sspickle
sspicklehttps://github.com/sspickle
b8a6fa1https://github.com/vpython/glowscript/commit/b8a6fa1b62d58fca58c599176380d21065e37245
Oct 31, 2026https://github.com/vpython/glowscript/pull/215#event-34768897321
Port glowscript compiler fixes: randint with negatives, 3/-3, and - -x vpython/rsWVPRunner#5 https://github.com/vpython/rsWVPRunner/pull/5
Pin rsWVPRunner by GitHub release (randint + 3/-3 fixes) PICUP-Physics/trinket-oss#369 https://github.com/PICUP-Physics/trinket-oss/pull/369
Refresh embedded RapydScript-NG (0.7.22 → upstream 0.8.7+) #217 https://github.com/vpython/glowscript/issues/217
List comprehension calling randint() or a user-defined function: SyntaxError (await inside non-async IIFE) #219 https://github.com/vpython/glowscript/issues/219
sspicklehttps://github.com/sspickle
Nov 5, 2026 https://github.com/vpython/glowscript/pull/215#ref-commit-d5a5786
https://github.com/sspickle
https://github.com/claude
Pin the rsWVPRunner RScompiler with the randint fixhttps://github.com/PICUP-Physics/trinket-oss/commit/d5a5786d87e37ca940e72aec50ef013692ffda1a
d5a5786https://github.com/PICUP-Physics/trinket-oss/commit/d5a5786d87e37ca940e72aec50ef013692ffda1a
vpython/rsWVPRunner#5https://github.com/vpython/rsWVPRunner/pull/5
vpython/glowscript#215https://github.com/vpython/glowscript/pull/215
https://claude.ai/code/session_01QNw6KLiif2r9zSoSQug4iLhttps://claude.ai/code/session_01QNw6KLiif2r9zSoSQug4iL
https://github.co/hiddenchars
https://github.com/vpython/glowscript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvpython%2Fglowscript%2Fpull%2F215
https://github.com/sspickle
sspickle https://github.com/sspickle
https://github.com/vpython/glowscript/pull/215/files/2c8dc3dc9161808687766d501d58f9ce89416b2d
Please reload this pagehttps://github.com/vpython/glowscript/pull/215
Please reload this pagehttps://github.com/vpython/glowscript/pull/215
https://github.com/greatsong
https://github.com/sspickle
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.