# Index of iteration inside NestList [duplicate]

I have a list of RandomReal:

delta = RandomReal[{-0.01, 0.01}, 1000]


I want to add each element of the list to the corresponding result of a function iteration in my NestList, but I need some sort of index in the NestList.

I can't do it this way:

NestList[g[#, 3] + RandomReal[{-0.01, 0.01}] &, .5, 1000]


because the RandomReal list has to be predefined before calculating iterations.

What are my choices?

-

## marked as duplicate by Kuba, Artes, ciao, m_goldberg, SilviaApr 1 '14 at 23:52

So FoldList seems the function you need. – Kuba Apr 1 '14 at 17:37
As Kuba said, FoldList is what I need:
FoldList[g[#1, 3] + #2 &, .5, delta]

Perhaps you would rather use Fold instead of FoldList. – Artes Apr 1 '14 at 17:49
Fold gives me the last item of FoldList if I understand correctly which is not what I need, because I have to ListPlot the thing after. – Egor N Apr 1 '14 at 20:11