How to generate a random position of image on canvas?

I want to create an image which position will be randomly on the canvas. Can someone help me?

Combine transform.position (RectTransform) & Random.Range() to randomise the values.

You can take Width and Height values of your canvas and use Random.Range(-width/2, width/2), Random.Range(-height/2, height/2) to get x and y random values for your image.