Random letter generator

Playing a game that needs a random letter? Select an alphabet and a random letter will be selected for you.

Face with waiting expression Nothing to see yet!

Loading takeymakey...
TakeyMakey code
Want this tool to do something else? Edit the code below and make it do whatever you want.
({
  take: [
    {
      type: "dropdown",
      label: "Alphabet",
      options: [
        { label: "English / Latin", value: "ABCDEFGHIJKLMNOPQRSTUVWXYZ" },
        { label: "Greek", value: "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ" },
        { label: "Cyrillic", value: "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ" },
        { label: "Hebrew", value: "אבגדהוזחטיכךלמנסעפצקרשתםןףץ" },
        { label: "Swedish", value: "ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ" },
        { label: "Danish / Norwegian", value: "ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ" },
      ],
    },
    { type: "button", action: "make", label: "Randomise" },
  ],
  make: ([lang]) => {
    const result = {
      type: "card",
      title: lang.split("")[Math.floor(Math.random() * lang.length)],
    }

    return new Promise((resolve) =>
      window.setTimeout(() => resolve(result), 300)
    )
  },
})