This should work!
function enqueue_random_style() {
wp_enqueue_style( 'style-name', get_stylesheet_directory_uri() . '/inc/rcolor/' . mt_rand(1, 9));
}
add_action( 'wp_enqueue_scripts', 'enqueue_random_style' );
This should work!
function enqueue_random_style() {
wp_enqueue_style( 'style-name', get_stylesheet_directory_uri() . '/inc/rcolor/' . mt_rand(1, 9));
}
add_action( 'wp_enqueue_scripts', 'enqueue_random_style' );