# Binomial Distribution Generator API

Generate a set of values that are binomially distributed.

> **Note:** This is depreciated.
The Binomial Distribution Generator API is an example built with Microsoft Azure Machine Learning that helps generate and handle binomial distributions. This service is a part of the Binomial distribution suite of services that allows the user to generate a binomial distribution sequence of any length (this specific service), calculate quantiles out of given probability and calculate probability from a given quantile.
Each of the services emit different outputs based on the selected service (see description below). The Binomial Distribution Suite is based on R functions qbinom, rbinom and pbinom that are included in R stats package.
##Consumption of Web Service##
This service accepts 3 arguments of a binomial distribution and generates a random sequence of numbers that are binomially distributed.
The following arguments should be provided to it within the request:
- n - Number of observations.
- size - Number of trials.
- prob - Probability of success.
The output of the service is a sequence of length n with a binomial distribution based on the size and prob arguments.
There are multiple ways of consuming the service in an automated fashion. One example apps is here: [Generator](http://microsoftazuremachinelearning.azurewebsites.net/BinomialDistributionGenerator.aspx).
*While these web services could be consumed by users - potentially directly on the marketplace, through a mobile app, website, or even on a local computer for example, the purpose of the web service is also to serve as an example of how Azure ML can be used to create web services on top of R code. With just a few lines of R code and clicks of a button within the Azure ML Studio, an experiment can be created with R code and published as a web service. The web service can then be published to the Azure Marketplace and consumed by users and devices across the world with no infrastructure set-up by the author of the web service.*