Skip to content

Added rational number fuzzer functions and corresponding tests #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

adrian052
Copy link

Functions Added:

  1. rational: Generates a random rational value within the range of [-255; 16383].
  2. rational_between: Generates rational values between specified bounds.
  3. rational_at_least: Generates a random rational value with a lower bound constraint.
  4. rational_at_most: Generates a random rational value with an upper bound constraint.

Note:
The current range for rational_between is set between -255 and 255. However, this range is flexible and could be adjusted based on any further requirements or suggestions.

@adrian052 adrian052 mentioned this pull request Sep 25, 2024
29 tasks
@KtorZ
Copy link
Member

KtorZ commented Apr 18, 2025

Sorry, I started reviewing this a while back but never posted the pending review 🤦.

I've pushed some minor style adjustments, but I haven't reviewed the code in depth. Two things caught my attention so far:

  • The distribution for rational and rational_between are somewhat odd.
  • It's unclear to me at this point why rationale bounds are limited to -255 -> 255 🤔

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