---
title: "Integer Uniform"
canonical: "https://modelassist.epixanalytics.com/space/EA/26575209/Integer%20Uniform"
format: markdown
---
Integer Uniform(min,max):

 = [DiscreteUniform(min,max)](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575571#CrystalBallfeatures-DiscreteUniform), which is a special case of the more general [Discrete Uniform distribution](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575206) that one can construct with [Crystal Ball's Custom Distribution](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575279)

 

[Integer uniform equations](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575946)

 

 

The Integer Uniform distribution is a distribution used to describe a variable that can take one of several consecutive explicit integer values. For example, the resulting value from throwing a die 1 time. An example of the Integer Uniform distribution is shown below:

 

![image](media://dc9d23ca-e12d-44ed-b694-55831d357e23)

 

#### Uses

It is not often that we come across a variable that can take one of several equally-spaced values each with equal probability. However, there are a couple of modeling techniques that require that capability:

##### Bootstrap

Resampling in [univariate non-parametric Bootstrap](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575409)

##### Fitting empirical distribution to data

Creating an empirical distribution directly from a data set, i.e. where we believe that the list of data values is a good representation of the randomness of the variable.

##### Bayesian analysis by simulation

An Integer Uniform distribution can represent an [uninformed prior](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575372) for a discrete variable, so it is useful when you perform a [Bayesian inference](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575368) analysis with simulation using accept/reject criteria. The [pats model](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575400) is an example.

 

#### Generation

The Integer Uniform distribution is not directly available in Crystal Ball 5.5- as a distribution but can be readily created using Crystal Ball's [Uniform](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575256) distribution and Excel's [ROUND](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575570#Excelfunctionsusefulinriskmodeling-Round) function as follows:

A1 = 1     (min)

A2 = 5     (max)

B1 = A1 - 0.5

B2 = A2 + 0.5

A3 = Uniform(B1,B2)

A4 = ROUND(A3, 0)

In Crystal Ball 7.0+, you can use the [DiscreteUniform Distribution](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575571#CrystalBallfeatures-DiscreteUniform) available in the distribution gallery.

 

 

 

---