public UBigIntHandle GenerateUBigIntRandomValue(RandomStateObjectHandle x, Int32 bit_count) { IntPtr r; HandleResultCode((PMC_STATUS_CODE)PMCCS_GenerateUBigIntRandomValue(x.NativeHandle, bit_count, out r)); return(new UBigIntHandle(r)); }
public double GenerateDoubleRandomValue(RandomStateObjectHandle x) { double r; HandleResultCode((PMC_STATUS_CODE)PMCCS_GenerateDoubleRandomValue(x.NativeHandle, out r)); return(r); }
public UInt64 GenerateUInt64RandomValue(RandomStateObjectHandle x) { UInt64 r; HandleResultCode((PMC_STATUS_CODE)PMCCS_GenerateUInt64RandomValue(x.NativeHandle, out r)); return(r); }
protected virtual void Dispose(bool disposing) { if (!_is_disposed) { if (disposing) { // マネージドリソースの解放 if (_random_state_object_handle != null) { _random_state_object_handle.Dispose(); _random_state_object_handle = null; } } // アンマネージドリソースの解放 _is_disposed = true; } }
private Random(Core.RandomStateObjectHandle random_state_object_handle) { _is_disposed = false; _random_state_object_handle = random_state_object_handle; }