Your URL works, random_position()
works. So, what might be the problem?
Are you sure this duration is proper?
Did you try something like 1 or 2 for duration?
Are you sure the start position and end position is different or distance between them large enough for duration 1200-2400?
math.random(1200, 2400)