Skip to content
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

random-float and random-int added #791

Merged
merged 4 commits into from
Nov 7, 2024

Conversation

DaddyWesker
Copy link
Contributor

I've added random-float and random-int to stdlib. Also I've added documentation and tests. Though I'm not sure how to test anything except error since number is random. Any possible way?

Usage is simple:
!(random-int 0 5)
!(random-float 0 10)

@DaddyWesker DaddyWesker requested a review from vsbogd October 31, 2024 08:35
lib/src/metta/runner/stdlib.rs Outdated Show resolved Hide resolved
lib/src/metta/runner/stdlib.rs Outdated Show resolved Hide resolved
lib/src/metta/runner/stdlib.rs Outdated Show resolved Hide resolved
lib/src/metta/runner/stdlib.rs Outdated Show resolved Hide resolved
lib/src/metta/runner/stdlib.rs Outdated Show resolved Hide resolved
lib/src/metta/runner/stdlib.rs Outdated Show resolved Hide resolved
lib/src/metta/runner/stdlib.rs Show resolved Hide resolved
lib/src/metta/runner/stdlib.rs Outdated Show resolved Hide resolved
vsbogd
vsbogd previously approved these changes Nov 1, 2024
@vsbogd vsbogd self-requested a review November 1, 2024 09:27
@vsbogd vsbogd dismissed their stale review November 1, 2024 09:27

Additional checks for Python/Rust communication

Copy link
Collaborator

@vsbogd vsbogd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging PR to fix the issue with Rust/Python conversion afterwards

@vsbogd vsbogd merged commit 054b66d into trueagi-io:main Nov 7, 2024
2 checks passed
@DaddyWesker DaddyWesker deleted the random_numbers branch November 11, 2024 05:26
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