Generate Random Numbers in TouchDesigner

In this video I am sharing some different ways of generating random integer and float numbers in TouchDesigner.

—–
00:00​ – Intro & Examples
01:36​ – Random Integer with Python
06:20​ – Random Float with Python
08:02 – Random Integer with CHOPs
10:40​ – Random Float with CHOPs
12:23​ – Random Integer Different from Previous One with Python (while loop)
17:15 – Random Integer Different from Previous One with Python (Table DAT)
33:00 – Random Float Different from Previous One with Python (Table DAT)
34:37 – Correct Output Names
35:49 – Random Integer Different from Previous One with CHOPs (Table DAT)
39:21 – Random Float Different from Previous One with CHOPs (Table DAT)
41:36 – Random Float with built-in Functions
44:30 – Random Integer with built-in Functions
45:52 – Performance Comparison
—–

Grab the .tox file:
https://github.com/vassmal/touchdesigner_tutorials/tree/main/generate_random_numbers

Post:
https://www.vassilismalamas.com/blog/generate-random-numbers-in-touchdesigner

Thank you for watching (or just grabbing the tox files)!
Feel free to put any questions you have in the comments below.

About The Author

You might be interested in