Fix. generate random vector using lrandom/math.random.