-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Feature Request] Random #87
Comments
Yup I'm definitely going to fix that. As explained in this and this issue, Randomness among other math functions most likely be implemented as standard library function calls instead of making its way into the syntax. |
OK, I see. Thx. |
It's part of stdlib now: https://github.com/wenyan-lang/wenyan/blob/master/lib/%E6%98%93%E7%B6%93.wy 🎉 |
Is there any way to set current timestamp as the random seed? Both divination.wy and In 西曆法.wy we currently have no functions that return current time in milli-seconds. May need to create one? |
In https://github.com/LingDong-/wenyan-lang/blob/master/examples/divination.wy , I defined a random number generator function by JavaScript.
Maybe we can change it into an individual keyword.
The text was updated successfully, but these errors were encountered: