POST api/Rng/GetRandomWithExclusion

Request Information

URI Parameters

None.

Body Parameters

RandomizeWithExclusionRequest
NameDescriptionTypeAdditional information
Start

integer

None.

End

integer

None.

ExclusionList

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Start": 1,
  "End": 2,
  "ExclusionList": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<RandomizeWithExclusionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RNG">
  <End>2</End>
  <ExclusionList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ExclusionList>
  <Start>1</Start>
</RandomizeWithExclusionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>