I have an assignment to do at college; Part of the task is to put more than one thing on an intersection. However we are not to "hard code" the assignment. I'm having a thought of randomly placing items in the "City" but i know that the "Things" will change place every time the program is run.
I'm not looking for anyone to give me code for this answer just checking if my logic might be right.
If i create one method to randomly generate some of the things, would i be right in thinking i could create another random method with some restriction that will randomly place more than one item at the same intersection?
I hope this makes sense but i really just want to know if i can restrict more than one thing to an intersection but keep the method random to where they end up placed?
Aucun commentaire:
Enregistrer un commentaire