How do I randomly rotate boxes?

Hi, I am relatively new to Grasshopper. I would like to randomly rotate boxes, which are randomly generated on a flat surface. I’ve already come up with a definition where I randomly generated points and then added rotatable boxes to those points, but from there on I am kind of stuck. Does anyone know how I can randomly rotate them? (They are meant to intersect each other) Thanks!

1 1.gh (7.7 KB)

Hi @rosanne_sol_9,

Like this?

2.gh (12.3 KB)


random_rotate_2019Jul31a.gh (14.9 KB)

Yes, thank you so much! Both are very helpfull :slight_smile:

1 Like