Click Green Flag. The variables settings set to randomization are colour; pen size; start position of line; and end position of line. The number of lines in total & the number of each colour are pre-determined by the coding. The only control you have is when you are pleased with the design created, Press Space.
Lines are drawn between two sprites. Those two sprites move to random positions on the Stage. For a project that involves the User/Player making the choices see: https://scratch.mit.edu/projects/779762642/