---
title: "init(lowestValue:highestValue:)"
framework: gameplaykit
role: symbol
role_heading: Initializer
path: "gameplaykit/gkrandomdistribution/init(lowestvalue:highestvalue:)"
---

# init(lowestValue:highestValue:)

Creates a random distribution with the specified lower and upper bounds, using the Arc4 randomizer.

## Declaration

```swift
convenience init(lowestValue lowestInclusive: Int, highestValue highestInclusive: Int)
```

## Parameters

- `lowestInclusive`: The lowest value to be produced by the distribution.
- `highestInclusive`: The highest value to be produced by the distribution.

## Return Value

Return Value A new random distribution.

## Discussion

Discussion Creating a random source with this method is equivalent to calling the init(randomSource:lowestValue:highestValue:) initializer and passing a new instance of the GKARC4RandomSource class for the source parameter. Because the newly created distribution uses its own GKRandomSource instance, the random behavior of the distribution is independent from that of other randomizers.

## See Also

### Creating a Random Distribution

- [init(randomSource:lowestValue:highestValue:)](gameplaykit/gkrandomdistribution/init(randomsource:lowestvalue:highestvalue:).md)
