text: import {
    Contributors,
    Languages,
    logs,
    nouns,
    singleCharacters,
    suffixes,
    verbs,
  } from "../constants";
  
  export function addNewLine(numberOfLines = 1) {
    return "\n".repeat(numberOfLines);
  }
  
  export function getContributors(lang) {
    return Contributors[lang];
  }
  
  export function getRandomInt(min, max) {
    return Math.round(Math.random() * (max - min) + min);
  }
  
  export function getRandomEntry(array) {
    return array[getRandomInt(0, array.length - 1)];
  }
  
  export function getRandomLang() {
    const languages = Object.keys(Languages);
    return getRandomEntry(languages);
  }
  
  export function capitalizeFirstChar(string) {
    return string.charAt(0).toUpperCase() + string.slice(1);
  }
  
  export function getRandomNoun() {
    return getRandomEntry(nouns);
  }
  
  export function getRandomVerb() {
    return getRandomEntry(verbs);
  }
  
  export function getRandomSuffix() {
    return getRandomEntry(suffixes);
  }
  
  export function getRandomNounCapitalized() {
    return capitalizeFirstChar(getRandomNoun());
  }
  
  export function getRandomVerbCapitalized() {
    return capitalizeFirstChar(getRandomVerb());
  }
  
  export function getRandomNounUpperCase() {
    return getRandomNoun().toUpperCase();
  }
  
  export function getRandomVerbUpperCase() {
    return getRandomVerb().toUpperCase();
  }
  
  export function getRandomLogLine() {
    return getRandomEntry(logs);
  }
  
  export function getRandomSingleCharacter() {
    return getRandomEntry(singleCharacters);
  }
  