Populating an array with a random sequence
Posted: Wed Nov 25, 2020 4:52 am
Hi, I'm still working on games using Z game editor . I've recently upgraded to the newest version, but I am still going to finish my old projects using the versions they were made with originally.
Anyhow, I'm interested in learning how to populate an array with a random sequence of numbers, but importantly I don't want it to repeat any of the same numbers twice.
I was wondering if someone could show me how to write a small piece of code that would perform this function. It would help me alot and I would greatly appreciate it!!
Anyhow, I'm interested in learning how to populate an array with a random sequence of numbers, but importantly I don't want it to repeat any of the same numbers twice.
I was wondering if someone could show me how to write a small piece of code that would perform this function. It would help me alot and I would greatly appreciate it!!