I tried writing a program that would give me the i,j and k components of a vector of a specified magnitude.
import random import math while True: a = random.