Skip to content

An Azure function that generates a word from a Markov chain

License

Notifications You must be signed in to change notification settings

pamelafox/chain-function

Repository files navigation

chain-function

An Azure function that generates a word from a Markov chain.

Endpoint:

https://pamelaschainfunction-apim.azure-api.net/PamelasChainFunction/ChainFunction

Query parameters:

  • kind: (Required) A string specifying the chain to use. Supported value is "planet".
  • seed: (Optional) An integer that will be used to seed the random number generator. The same seed will always yield the same result.

Usage in JavaScript:

let response = fetch("https://pamelaschainfunction-apim.azure-api.net/PamelasChainFunction/ChainFunction?kind=planet", {
headers: {
    "Ocp-Apim-Subscription-Key": "<KEY HERE>",
  }
}).then((response) => response.text())
.then(console.log)
.catch(console.error);

About

An Azure function that generates a word from a Markov chain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages