Open Cictrone opened 7 months ago
Is your feature request related to a problem? Please describe. Eldritch currently can't create a random integer.
Describe the solution you'd like
Implement the random.int function that will return a random (i32) integer. This will theoretically be very similar to the random.bool function.
random.int
i32
random.bool
To see an example of what a PR that implements an eldritch function looks like, check out the PR for sys.get_user() here.
sys.get_user()
if you have questions lmk
Is your feature request related to a problem? Please describe. Eldritch currently can't create a random integer.
Describe the solution you'd like
Implement the
random.int
function that will return a random (i32
) integer. This will theoretically be very similar to therandom.bool
function.To see an example of what a PR that implements an eldritch function looks like, check out the PR for
sys.get_user()
here.