Skip to main content
Tweeted twitter.com/StackMma/status/1511992192159653889
Became Hot Network Question
edited tags
Link
Artes
  • 57.9k
  • 13
  • 159
  • 247
Source Link
BeTDa
  • 500
  • 2
  • 9

How to generate Venn diagram from a universe and 3 random sets?

Given a universe u with random numbers between 1 and 50 and three sets a,b,c, that have random numbers a between 3 and 30, b between 2 and 40 and c between 4 and 49

How can I represent the sets a, b and c and the universe u in a diagram of the type

enter image description here

I have tried with Random Sample , Random Choice and I have looked in the forum , but the programming is beyond me , This is to generate different exercises for my students , very grateful in advance.

Edit:This is an example, the limits of elements can be varied, which is not how to make them be distributed completely randomly .