GLSL - rand() command not working

The rand() glsl function seems to be missing in touchdesigner. I can’t find anything about this in the documentation. Does anyone know if this is the case, or if the function is named something else in touchDesigners implementation of GLSL.

The GLSL language does not contain a rand() function. We do provide TDSimplexNoise() and TDPerlinNoise() functions, but currently we don’t have any function that provides rand()-like functionality. Sorry.

Ok, thanks for clearing that up for me.

This is a good one.
stackoverflow.com/a/4275343

float rand(vec2 co){ return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453); }