When I call the stars() function, it only iterates the randint() function once and not every time the while loop is ran. I am unsure on how to make it call a different randint() each time the while loop runs. Any help would be greatly appreciated.
from turtle import Turtle, bgcolor, colormode, done
from random import randint
bgcolor("blue4")
colormode()
def main() -> None:
"""The entrypoint of my scene."""
van_gogh: Turtle = Turtle()
stars(van_gogh, randint(-400, 400), randint(0, 250), randint(10, 30))
done()
def stars(a_turtle: Turtle, x: int, y: int, radius: int) -> None:
"""Describing the stars' characteristics, location, and drawing orders."""
a_turtle.fillcolor("yellow")
a_turtle.penup()
a_turtle.goto(x, y)
a_turtle.pendown()
i: int = 0
while i < 20:
a_turtle.begin_fill()
a_turtle.circle(radius)
a_turtle.end_fill()
i = i + 1
if __name__ == "__main__":
main()
