Hello, I want to ask what is the best way or steps to be followed to create a dataset based on some rules. Like I want to add some rules and restrictions to be followed, place or position some elements according to these rules and at the end create a dataset (.csv or .json) documenting the (x,y,z) position for every element
Hi, welcome to the forum
You cant write some Python code to generate random numbers using random.randrange()
and store the numbers in lists/arrays
You can read more about that here: https://www.geeksforgeeks.org/random-numbers-in-python/
1 Like
Thank you. The point here is that I want the elements to be placed according to my restrictions or rules first before storing them.
That’s something you could implement in the code. What are some examples of your “restrictions or rules” ?
-Setting distance between elements
-Aligning elements parallel or perpendicular
-Respecting some dimensions
Ok you should be able to code all of that using the randrange method I think. Did you read the link I sent?
Let me know if you have any other questions?