To randomly add 1-5 views, you can change the if ( $should_count
block at the bottom to:
if( $should_count && ( ( isset( $views_options['use_ajax'] ) && (int) $views_options['use_ajax'] === 0 ) || ( !defined( 'WP_CACHE' ) || !WP_CACHE ) ) ) {
$random_increment = rand( 1, 5 );
update_post_meta( $id, 'views', $post_views + $random_increment );
do_action( 'postviews_increment_views', $post_views + $random_increment );
}
I’m still not sure why you’d want to do this though.