I will try to explain this as good as possible. I have 2 methods that both use a number between 1 and 4 generated by a random generator object. I made the random generator object outside both methods but I need to generate a new number, use it in one method and use that same number generated in another method then, generate another number to to the same process. but I cant get how I can Generate a number outside both methods, use it in both methods, and then generate another number to use in both methods. It will be used turn by turn in both methods.
Aucun commentaire:
Enregistrer un commentaire