{"size": 291, "ext": "js", "max_stars_repo_path": "Trails.Web/wwwroot/js/randomColorGenerator.js", "max_stars_repo_name": "htopalov/Trails", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Trails.Web/wwwroot/js/randomColorGenerator.js", "max_issues_repo_name": "htopalov/Trails", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Trails.Web/wwwroot/js/randomColorGenerator.js", "max_forks_repo_name": "htopalov/Trails", "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": 36.375, "max_line_length": 48, "alphanum_fraction": 0.6941580756}
﻿function generateRandomColor() {
    let maxVal = 0xFFFFFF;
    let randomNumber = Math.random() * maxVal;
    randomNumber = Math.floor(randomNumber);
    randomNumber = randomNumber.toString(16);
    let randColor = randomNumber.padStart(6, 0);
    return `#${randColor.toUpperCase()}`;
}