Google: shuffle list python
One of the first results:
Don‘t take me wrong. I really admire that you try to learn python with your own projects. Ofc asking for help on the forum is what you should do if you‘re stuck. But my advice would be starting with tutorials and learning the basics (also possible outside grasshopper). You should learn to help yourself. Sometimes a 1 Minute google search is way faster than asking here.
I always first search myself and then I ask if I cannot solve it. random.shuffle(x[, random]) I do not know what to place for x. It just not clear to me, maybe I am slightly not smart enough, but I just do not know how.
Everything is very clearly explained on the internet,
Yes, I read that since at the beginning there were no booleans in python in order to make them backportable they derived True and False from the int() class.
This made them mutable in all Python2 versions. Which was also transferred to IronPython.
I assumed since the C# connection they might have fixed that but unfortunately they didn’t. Perhaps this could be fixed somehow with the embedded engine bind it somehow to .net’s booleans. I don’t know. I’m not familiar with low level programming.
I find your code difficult to follow. It is good practice if you don’t use good descriptive names for the variables to place comments explaining what you’re trying to do.
Up to the part where you remove the duplate values from the list and you sort it everything is clear, but after that I really don’t get what you’re trying to do.
I have a curve and I want to place points on it between 0 and the MAX length of the curve.
I made values and somehow by using PointAt, the points fly away. I do not yet understand why. Do you might know why my points are not on that curve?