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

LLM suggested syntax improvement: Vertex.random #709

Closed
davesmith00000 opened this issue Mar 16, 2024 · 1 comment
Closed

LLM suggested syntax improvement: Vertex.random #709

davesmith00000 opened this issue Mar 16, 2024 · 1 comment

Comments

@davesmith00000
Copy link
Member

I was messing about and ChatGPT hallucinated the existence of Vertex.random(dice, maxX, maxY)... which I sort of like? Maybe it is an extension method for point-like types?

@davesmith00000
Copy link
Member Author

The work is in #728.

The problem with this work is that there are many many permutations of random 'things' that you might want. So I've tried to provide some generally useful instances but stopped short of trying to provide ways to make any sort of random things. Use cases I've thinking off:

  • A random angle: 0 to 2*PI
  • A random point/size/rectangle on the screen: 0 to screen size
  • A random point/size/rectangle in a given range: min to max
  • A random vector2/3/4/vertex: Each component is a random 0.0 to 1.0, leaving you to manipulate further if you wanted something else.

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

No branches or pull requests

1 participant