Add shuffle to wp-cycle plug-in

How to make the image in your wp-cycle appear randomly. You can do so by adding one line of code to the wp-cycle.php file in the plugins folder… Here is what it looks like out of the box

414  echo ‘<div id=”‘.$wp_cycle_settings[‘div’].'”>’.$newline;
415
416  foreach((array)$wp_cycle_images as $image => $data) {

This is what it looks like when you add the line in red.

414  echo ‘<div id=”‘.$wp_cycle_settings[‘div’].'”>’.$newline;
415  shuffle($wp_cycle_images);
416
416  foreach((array)$wp_cycle_images as $image => $data) {