Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
php
/
php-src
Public
Notifications
You must be signed in to change notification settings
Fork
8.1k
Star
40.3k
Code
Issues
962
Pull requests
1.1k
Actions
Security and quality
52
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Add Randomizer::nextFloat() and Randomizer::getFloat()
- #9679
#9679
Merged
TimWolla
merged 14 commits into
php:master
php/php-src:master
from
TimWolla:randomizer-nextFloat
TimWolla/php-src:randomizer-nextFloat
Copy head branch name to clipboard
Dec 14, 2022
Conversation
Commits
14
(14)
Checks
Files changed
Merged
Add Randomizer::nextFloat() and Randomizer::getFloat()
#9679
TimWolla
merged 14 commits into
php:master
php/php-src:master
from
TimWolla:randomizer-nextFloat
TimWolla/php-src:randomizer-nextFloat
Copy head branch name to clipboard
Commits
Commits on Dec 9, 2022
random: Add Randomizer::nextFloat()
TimWolla
committed
5017048
View commit details
Copy full SHA for 5017048
Browse repository at this point
random: Check that doubles are IEEE-754 in Randomizer::nextFloat()
TimWolla
committed
404342b
View commit details
Copy full SHA for 404342b
Browse repository at this point
random: Add Randomizer::nextFloat() tests
TimWolla
committed
8a31678
View commit details
Copy full SHA for 8a31678
Browse repository at this point
random: Add Randomizer::getFloat() implementing the y-section algorithm
Show description for 918ef25
TimWolla
committed
918ef25
View commit details
Copy full SHA for 918ef25
Browse repository at this point
random: Implement getFloat_gamma() optimization
Show description for 9cb4291
TimWolla
committed
9cb4291
View commit details
Copy full SHA for 9cb4291
Browse repository at this point
random: Add Random\IntervalBoundary
TimWolla
committed
63dc454
View commit details
Copy full SHA for 63dc454
Browse repository at this point
random: Split the implementation of γ-section into its own file
TimWolla
committed
18f2ab8
View commit details
Copy full SHA for 18f2ab8
Browse repository at this point
random: Add tests for Randomizer::getFloat()
TimWolla
committed
b80ecbb
View commit details
Copy full SHA for b80ecbb
Browse repository at this point
random: Fix γ-section for 32-bit systems
TimWolla
committed
a323cb0
View commit details
Copy full SHA for a323cb0
Browse repository at this point
random: Replace check for __STDC_IEC_559__ by compile-time check for DBL_MANT_DIG
TimWolla
committed
bd0bee4
View commit details
Copy full SHA for bd0bee4
Browse repository at this point
Commits on Dec 12, 2022
random: Drop nextFloat_spacing.phpt
TimWolla
committed
69a0b8d
View commit details
Copy full SHA for 69a0b8d
Browse repository at this point
random: Optimize Randomizer::getFloat() implementation
TimWolla
committed
ed8049b
View commit details
Copy full SHA for ed8049b
Browse repository at this point
Commits on Dec 13, 2022
random: Reject non-finite parameters in Randomizer::getFloat()
TimWolla
committed
c51cf82
View commit details
Copy full SHA for c51cf82
Browse repository at this point
Commits on Dec 14, 2022
random: Add NEWS/UPGRADING for Randomizer’s float functionality
TimWolla
committed
1c3d997
View commit details
Copy full SHA for 1c3d997
Browse repository at this point
You can’t perform that action at this time.