Random Number Generator ShapeDiver

Hello, I’m trying to create a random seed number generator for ShapeDiver. The setup below works in Grasshopper, but once uploaded to ShapeDiver it outputs the same number over and over again.

Is there any fix for this, or any alternative on how to generate a random seed numbers with the toggle switch?

Any help is appreciated.

Your help would be much appreciated @mathieu1

The ShapeDiver system works with a caching mechanism: for a given set of parameters, the servers will always give back the same result.

Our users who implement web applications using the viewer API usually rely on a direct text input containing a random string or a time stamp to make sure the solutions are newly computed on the servers.

In the future, we might implement a way to disable caching for specific models, although that will cost at a performance cost.

Thanks @mathieu1 for your reply. I’m only using the models inside the ShapeDiver platform, without API. Is there any other way to generate a random string without the user having to manually use an input or slider? My goal is to make this process random and automated.

As mentioned above, there is no way to do this at the moment. I will update this topic when we make progress regarding the caching disabling feature.

1 Like