var imgArray = ['four_rats_piled_in_hammock', 'sleeping_rat_wrapped_in_blanket', 'black_and_white_rat_curled_up_in_blue_hammock', 'rat_in_cat_tree_looking_at_camera', 'three_rats_in_a_tube_hammock', 'black_and_white_rat_curled_up_in_blue_hammock_2', 'rat_in_plush_cave', 'three_sleeping_rats_cuddling_on_couch', 'black_and_white_rat_curled_up_in_blue_hammock_3', 'rat_sitting_on_bed_eating_tiny_pancake', 'two_rats_in_hammock_one_yawning', 'black_and_white_rat_in_blue_hammock', 'rat_standing_at_foot_of_bed', 'two_rats_in_hollowed_out_pillow_cuddling', 'mischief_of_rats_hanging_out_on_couch', 'rat_standing_poking_head_through_steps_of_cat_tree', 'two_rats_inside_cat_tree_dramatically_wrestling', 'fat_rat_walking_around', 'rats_in_hammock_grabbing_cage_bars'];
var basePath="/assets/img/rattos/";
var fileFormat=".webp";

function imgRandom() {
    var rand = imgArray[Math.floor(Math.random() * imgArray.length)];
    document.getElementById('rattos-image').src = basePath+rand+fileFormat;
    document.getElementById('rattos-image').alt = rand.replaceAll('_',' ');
}

imgRandom();
