I generate a number in the range 1 to 100. This number should be in the first coordinate of the pos = vec(0,0,0)
(so on the x-axis). The other axes should stay 0. How can I transfer the generated number to this point?
from vpython import*
from random import randint
#Sonne
sun = sphere(pos = vec(0,0,0), radius = 9, make_trail = True )
sun.mass = 2e30
sun.velocity = vec(0,0,0)
#Merkur
mercury_pos_x = randint(1, 100)
mercury = sphere(pos = vec(mercury_pos_x,0,0), radius = 5, color=color.red, make_trail = True )
mercury.mass = 3.25e23
mercury.velocity = vec(0,0,-47000)
#Venus
venus_pos_x = randint(1, 100)
venus = sphere(pos = vec(venus_pos_x,0,0), radius = 6, color=color.cyan, make_trail = True )
venus.mass = 4.9e24
venus.velocity = vec(0,0,-35000)