Replies: 2 comments 2 replies
-
There's already a proposal and PR for |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a few ideas for random functions in GDScript (e.g. like randi(), randf(), etc...):
Returns a random bool: true or false. It is equivalent to expression:
bool(randi()%2))
random sign integer: 1 or -1. It is equivalent to expression:
sign(randi()%2-0.5)
Beta Was this translation helpful? Give feedback.
All reactions