Random uint32

Yes I have. On the bright side though I attempted to create a uint32 version of the RandHelper function and it’s actually working.

uint32 AMyActor::RandomUint32(uint32 A)
{
return A > 0 ? FMath::Min((uint32)FMath::TruncToInt(FMath::FRand() * (float)A), A - 1) : 0;
}

I called it with the max value of uint32 and I got good results.

uint32 Num = RandomUint32(MAX_uint32);
UE_LOG(LogTemp, Warning, TEXT(“%u”), Num);