Expression random()

Hi,
I know random() is not in the list of Supported functions but is there a way to get around the problem?
Thanks

1 Like

Whats!

random()

1 Like

I’d guess it generates a random number between two numbers which would be given in the (x, y) - like this. Pretty common in code, like python. But I don’t think there’s a way to do this, except manually generating random numbers and pasting them to input.

1 Like

Ya common in programing, but so Random to state it’s a problem in the calculator.

Or I might not fully understand the random problem.

1 Like

Seeing the list of supported functions, I thought I would also find random() which returns a random number, but no…
Hence my question. Is there a way to get around this gap?

1 Like

In my opinion, random() is no more complex than the floor(n) or round() functions in the calculator.

1 Like

So instead of stating random functions or missing functions. State what you can’t do with

random()

Maybe I need it?

1 Like

Forget it! Given the tone of your response, it doesn’t make me want to continue…
Go back to your carpentry instead.

1 Like

Do I need a better understanding of the construction geometry?

Macro textures for one

1 Like

Don’t give up. Most user’s won’t understand its use in a CAD program.

Recalculation may be an issue depending on how they’ve implemented the functions. Would you want it to calculate once (effectively returning the same value after each calculation) or would it be ok for the value to change if it was recalculated? Calculate once is the most efficient but may require them to re-implement how functions are handled.

2 Likes

I don’t think he’s being snip, I think it’s a language (cultural) difference…
I would like to know what one could do with a random function in CAD just for the fun of exploring new ideas. :slightly_smiling_face:

2 Likes