diff --git a/pystencils/rng.py b/pystencils/rng.py
index 4341a0b3906cb9505b1ffbb4c6070e9ea09aee60..5bc91b5678de9ec9e10bc43953604c4978eeaae7 100644
--- a/pystencils/rng.py
+++ b/pystencils/rng.py
@@ -111,3 +111,4 @@ def random_symbol(assignment_list, seed=TypedSymbol("seed", np.uint32), rng_node
                 assignment_list.insert(0, node)
                 inserted = True
             yield symbol
+        counter += 1