For the following code, using "CreateRandomString":
<ClaimsTransformations>
<ClaimsTransformation Id="SetRandomNumber" TransformationMethod="CreateRandomString">
<InputParameters>
<InputParameter Id="randomGeneratorType" DataType="string" Value="INTEGER"/>
<InputParameter Id="maximumNumber" DataType="int" Value="10"/>
<InputParameter Id="seed" DataType="int" Value="1234567890"/>
<InputParameter Id="stringFormat" DataType="string" Value="{0}"/>
<InputParameter Id="base64" DataType="boolean" Value="false"/>
</InputParameters>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="randomNumber" TransformationClaimType="outputClaim"/>
</OutputClaims>
</ClaimsTransformation>
</ClaimsTransformations>
where I want a random number between 0 and 10, it always returns 5.
For 1000 values, always returns 547. For 100 values, always returns 54. For 10 values, always returns 5. For 3 values, always returns 1.
It just seems to pick a number in the middle of the range.
Is there something I can do to get a random number in the same manner that the C# Random method works?