Chunk item generation with Sebastian Lagues tutorial

So i followed Sebastian Lagues tutorial on landmass generation Procedural Landmass Generation (E01: Introduction) - YouTube and i wanted to make random items spawn on each new chunk and i have tried for so long and nothing.

,Thanks

yes its microsoft paint