jquery image rotator..

jquery image rotator..

Hello,
I am new with Jquery. I am learning how to make jquery image rotator.
I found many on through google search but i need to ask some more question to help me understand better.
1. I have different images with different resolution some images got 500x500 some got 600x400. Now one way is to change all the images resolution to same. But i need to find out a way if it is possible in coding using div structure to change the width and height of images.
2. If i am using array the i can array_shuffule to display random pic in rotation. But if i don't use array then how can i randomize the order of the images.
Please help me with the complete code. thnx