Changes
Page history
Update Examples
authored
Aug 11, 2023
by
Jonathan Ehret
Show whitespace changes
Inline
Side-by-side
Randomization/Examples.md
View page @
0bfd362f
...
@@ -1242,7 +1242,7 @@ TArray<USFCondition*> AStudySetup::ConditionSortingCallback(const TArray<USFCond
...
@@ -1242,7 +1242,7 @@ TArray<USFCondition*> AStudySetup::ConditionSortingCallback(const TArray<USFCond
{
{
int
PickIndex
=
RNG
.
RandRange
(
0
,
ConditionsToShuffle
.
Num
()
-
1
);
int
PickIndex
=
RNG
.
RandRange
(
0
,
ConditionsToShuffle
.
Num
()
-
1
);
ShuffledConditions
.
Add
(
ConditionsToShuffle
[
PickIndex
]);
ShuffledConditions
.
Add
(
ConditionsToShuffle
[
PickIndex
]);
AnswerOptions
.
RemoveAt
(
PickIndex
);
ConditionsToShuffle
.
RemoveAt
(
PickIndex
);
}
}
//put everything back together
//put everything back together
...
...
...
...