# %%writefile FILENAME.py 
# your function is here
from math import cos, sin, pi
from random import randrange
def random_quantum_state2():
    #
    # your codes are here
    #
    # randomly create quantum states
    angle_random = randrange(361)
    # get the angles cos, sin
    angle_random_radian = (2 * pi * angle_random)/(360)
    return [cos(angle_random_radian), sin(angle_random_radian)]


# visually test your function
%run qlatvia.py

draw_qubit()

#
# your solution is here
#
for i in range(100):
    [x, y] = random_quantum_state2()
    draw_quantum_state(x,y,"")
    

