In my game I would like to create smaller green circles inside a larger oblong shape but they have to be inside it. So far my code has them generated randomly which works for a lot of them but there is almost always one which generates on or outside of the oblong. The game has various cells and all but 2 of them are circular. The non-circular ones are this shape:
from tkinter import Tk,Canvas
import random as r
WOODEN="#CDA678"
root=Tk()
canv=Canvas(master=root,width=80,height=180,bg=WOODEN)
pt1=canv.create_arc(2,2,78,78,start=0,extent=180)
pt2=canv.create_arc(2,102,78,178,start=180,extent=180)
pt3=canv.create_line(2,40,78,40,fill=WOODEN)
pt4=canv.create_line(2,140,78,140,fill=WOODEN)
pt5=canv.create_line(2,40,2,140)
pt6=canv.create_line(78,40,78,140)
canv.pack()
for x in range(6): #Inside this for loop is where I am struggling
x=r.randint(0,60)
y=r.randint(0,60)
canv.create_oval((x,y,x+20,y+20),outline="black",fill="green")
root.mainloop()
Is there a way to do this