function randomArrayItem(array: Array<string>) {
  return array[Math.floor(Math.random() * (array.length - 1))]

}


export function randomStoryTitle() {
  const titles = [
    "The Signalman",
    "The Time Machine",
    "The Lawnmover Man",
    "La Casa de Adela",
    "The Tell-Tale Heart",
    "The Lottery",
    "The Birds",
    "The Minority Report",
    "The Bear Came Over the Mountain"
  ]
  return randomArrayItem(titles)
}

export function randomPublicationTitle() {
  const titles = [
    "Nightmare Magazine",
    "Apex",
    "The Dark",
    "Reader's Digest",
    "The New Yorker",
    "Short Story Magazine",
    "Weird Tales",
    "Detective Stories"
  ]
  return randomArrayItem(titles)
}

