The idea is to generate a sequence of random numbers, then take the sum of it and keep the last value. Every time I hit "random"a new sequence is created.
The above code returns the following error msg
RandomVariate::array : "\"The array dimensions -1 + n given in position 2 \ of RandomVariate[ExponentialDistribution[=CE=BB], -1 + n] should be a list of \ non-negative machine-sized integers giving the dimensions for the result. \""
and some weird output. After hitting "random", the output is what I expect but the whole Manipulate output is still red indicating that there are problems.
Could you be so kind to point out what I did wrong and how to fix it? I feel that I did not quite get how Manipulate works.