All pastes #168756 Raw Edit

Something

public text v1 · immutable
·published 2006-09-13 08:32 UTC
rendered paste body
Hi Mark,

mspa009@ec.auckland.ac.nz wrote:
> Hello,
>
> I have my assignment all done, however I wish to check something with you while
> there is time to change it.
>
> For Question 4
> Do we specifically have to store everything that happened previously - (I
> noticed some people on the forums were using an array list  to keep track of
> it)
>
> I have done it by grabbing a new random seed every time the program starts and
> storing it in a variable.
>
> Then, every time the repaint() method is called, it just resets the seed back to
> the starting seed and so the same pattern of "randomness" occurs.
>
> Please could you tell me if the way I have done this is fine for CompSci105.

A good trick. (Why did I not think of that?)

Unfortunately, that defeats the purpose of what I wanted the assignment
to do. At one level it meets the requirements of the assignment, but it
is certainly not what I intended. I should have been a little more
specific about keeping track of the previously generated random numbers
rather than just generating them again (and relying on the method of
generation).

So I would have to say no. Sorry.

-- 
Robert Sheehan
Department of Computer Science
University of Auckland
r.sheehan@auckland.ac.nz