I have 120 lines with a tag (id1, id2) How to automatically put a random number in all lines?

I have 120 lines with a tag (id1, id2) How to automatically put a random number in all lines?