Let's introduce "allowed operations" simpler than "randomly putting".
1. The operation of marking on the ruler the end points of the measured object
2. The operation of aligning the object along the ruler with the left end of the object located any given point.
Then we can align the ruler successively along the ruler many times, each time align the left end with the previous right end.
This way the accuracy can be made arbitrarily small.