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

Add random functions. #44

Merged
merged 1 commit into from
Oct 16, 2022
Merged

Add random functions. #44

merged 1 commit into from
Oct 16, 2022

Conversation

skx
Copy link
Owner

@skx skx commented Oct 16, 2022

This pull-request adds (random) as a built-in primitive, and then uses that to create a pair of other functions:

  • random:char
    • Return a random letter from a-z
  • random:item
    • Return a random list-element.

This closes #43.

This pull-request adds (random) as a built-in primitive, and then
uses that to create a pair of other functions:

* random:char
  * Return a random letter from a-z
* random:item
  * Return a random list-element.

This closes #43.
@skx skx merged commit 94f9f8d into master Oct 16, 2022
@skx skx deleted the 43-random branch October 16, 2022 11:16
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.

Implement "random"
1 participant