{"size": 374, "ext": "js", "max_stars_repo_path": "javascript_graduation/js/background.js", "max_stars_repo_name": "gksdud1109/gksdud1109.github.io", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "javascript_graduation/js/background.js", "max_issues_repo_name": "gksdud1109/gksdud1109.github.io", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "javascript_graduation/js/background.js", "max_forks_repo_name": "gksdud1109/gksdud1109.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 34.0, "max_line_length": 79, "alphanum_fraction": 0.6711229947}
const backgrounds = ["0.jpg", "1.jpg", "2.jpg", "3.jpg", "4.jpg"];

const randomJpg = backgrounds[Math.floor(Math.random() * backgrounds.length)];
console.log(randomJpg);
//const bgImage = document.createElement("img");

//bgImage.src = `img/${randomJpg}`;

//document.body.appendChild(bgImage);

document.body.style = `background-image: url("img/${randomJpg}");`;