Random.Next gives differnt numbers than Random Component?

Hi,

I found out Random.Next creates different integers than the random component.
I am posting out of curiosity looking for an explanation but also it kinda annoys me not to be able to match the GH Component with a C# Component.

RandomGenerator.gh (9.1 KB)

Just a guess, the gh component generates doubles and in case you set it to int it rounds them.

2 Likes

Correct.

1 Like