Random animal

Generate a random animal from the ocean, desert, grassland, forest, farm, pet or the zoo.

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: [
    {
      label: "Type",
      type: "dropdown",
      options: [
        "Any",
        "Ocean",
        "Desert",
        "Grassland",
        "Forest",
        "Farm",
        "Pet",
        "Zoo",
      ],
    },
    { type: "button", action: "make", label: "Generate" },
    {
      type: "import",
      value: "https://cdn.jsdelivr.net/npm/chance@1.1.8/dist/chance.min.js",
    },
  ],
  make: ([type]) => ({
    type: "card",
    title: chance.animal(
      type === "Any" ? undefined : { type: type.toLowerCase() }
    ),
  }),
})