This site requires JavaScript, please enable it in your browser!
Greenfoot back
AOATGS
AOATGS wrote ...

2019/2/26

Displaying all options at random only once

AOATGS AOATGS

2019/2/26

#
I am making a program where I need to show a bunch of names in a 4x5 grid and I have a set list of names that all need to appear once in the list. Is this possible, I have been unable to find any help on it, and I don't have code because I don't know where to start. Any ideas and code is helpful, deadline is Friday February 29th
danpost danpost

2019/2/26

#
AOATGS wrote...
I am making a program where I need to show a bunch of names in a 4x5 grid and I have a set list of names that all need to appear once in the list. Is this possible, I have been unable to find any help on it, and I don't have code because I don't know where to start. Any ideas and code is helpful, deadline is Friday February 29th
You could start a new list for the names you have added to the grid. Then, as you iterate thru the set list, if the name is not in your new list, add it to both the grid and the new list.
You need to login to post a reply.