Inspired by the aforementioned research and our previous investigation of certain topological indices based on degree over random polyomino chains and polyomino chains , the primary objective of this manuscript is to establish explicit formulas for the first and second Zagreb connection indices. Additionally, we aim to analyze their extreme values within the context of polyomino chains. Under the random framework, our goal is to determine the expected values, variances, and asymptotic behavior.