hi,
My Challenge: to populate a 20x20 array with 100 random numbers which will represent organisms which will then die out based on their neighbours' existence.
My approach: I've generated the 100 numbers between 0 and 400 using srand, which to my simple mind I would like to use to represent the random positions in the array, then I would like to place an asterisk in the positions, representing the life-forms.
Is this too complex an approach 'cause for the life of me I can't get them read into the array.



LinkBack URL
About LinkBacks


