ArgumentCountError thrown

Too few arguments to function wp_register_sidebar_widget(), 2 passed in /var/www/lagzero.net/html/wp-content/plugins/randomimage.php on line 117 and at least 3 expected