Making Things with AILesson 6 of 84

Module 1 · How the picture gets made

Seeds, samplers and reproducibility

In this lesson

  • 8 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 6 of 9 in this chapter

This chapter’s goalTrace one generated image from random noise to a saved file (naming the latent space, the text encoder, the denoising loop, the guidance term, the sampler and the seed) and say, with the published evidence, what a diffusion model does and does not retain from its training set.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

Where the randomness actually is

Everything in the denoising loop is deterministic arithmetic. Given the same inputs, the network returns the same output every time. The variety in generated images comes from one place: the block of random numbers the loop starts from.

That block is produced by a pseudorandom generator, and a seed is the number that generator starts from. Seed 42 always produces the same static, so seed 42 with the same prompt, model, sampler, steps and guidance always produces the same picture. Change the seed and every number in the starting static changes, which changes the composition entirely, not slightly.

This makes the seed the most useful control in the interface and the one beginners ignore. Fixing the seed converts generation from a slot machine into an experiment: change one thing, see what that thing did. Vary the seed and you are comparing two different pictures, which tells you nothing about the change you made.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Yetunde, your AI tutor

How to cite: Addaly (2026) ‘Seeds, samplers and reproducibility’, in Making Things with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/making-things-with-ai/seeds-and-samplers (Accessed: 29 November 2026).