Determinism and random

Why a graph always draws the same thing, how the random nodes fit in, and how to reroll them with seeds.

A graph always draws the same thing: evaluating it twice, today or next week, gives the same drawing. That holds for the random nodes too.

Random nodes are repeatable

Random Number, Random Integer, Random Color, and the patterns of the Noise and Displace effects don't change each time the graph is evaluated. Each one has its own sequence of random numbers, fixed for that node, and starts it again on every evaluation. So:

  • a random node keeps its value while you edit the rest of the graph;
  • changing its range keeps its place in it: if Random Number gives 0.6 between 0 and 1, it gives 1.2 between 0 and 2;
  • two random nodes give different values, and so does a duplicated one: each node has its own sequence;
  • inside a function, such as the body of a Map, each call gets its own sequence, so each element gets a different value.

Changing the random values: seeds

A seed picks which sequence of random numbers is used. Change it to try another outcome; type an earlier seed back to get that outcome again. There are two kinds:

  • The drawing's seed, in the Image drawer's Randomness section: every sequence derives from it, so changing it gives every random node new values at once. It's 0 by default.
  • A node's own seed, for one random node: in the property inspector, or with New random seed in the node's context menu (for every random node of the selection). It gives that node, and what depends on it, other values, and leaves every other node as it was. Without one ("default") the node uses its usual sequence; Reset goes back to it.

Both are saved with the drawing, so it opens with the same values. A seed is a whole number from 0 to 2 147 483 647; the dice buttons pick one at random.

A node's seed on a random node inside a function applies to every call: the calls still get different values from each other, all different from before. A seed for a whole Map at once isn't available.

To keep a value whatever you change, even the random node's own range, freeze the node: it keeps the value it has now, and so does a duplicate of it.

Text depends on fonts

Text is the one exception: it's drawn with the fonts of the computer showing it. The same graph gives the same text, but on a computer without its font it's drawn in the fallback font instead, and so is a downloaded SVG opened there.

Why

Since every node is pure, a graph's drawing depends only on the graph. Results can be kept between edits, a node's value doesn't jump when you change something unrelated, and the same graph always gives the same picture.

See also

© 2026 Wirepaint