Guilin Sun
Ansys Employee

Please check the Object Library for some randomness. Also check the following articles:

Tips for adding surface roughness to structures – Ansys Optics

sroughness - Script command – Ansys Optics