Beispiel #1
0
        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));
        }
Beispiel #2
0
        public double GenerateDoubleRandomValue(RandomStateObjectHandle x)
        {
            double r;

            HandleResultCode((PMC_STATUS_CODE)PMCCS_GenerateDoubleRandomValue(x.NativeHandle, out r));
            return(r);
        }
Beispiel #3
0
        public UInt64 GenerateUInt64RandomValue(RandomStateObjectHandle x)
        {
            UInt64 r;

            HandleResultCode((PMC_STATUS_CODE)PMCCS_GenerateUInt64RandomValue(x.NativeHandle, out r));
            return(r);
        }
Beispiel #4
0
        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;
            }
        }
Beispiel #5
0
 private Random(Core.RandomStateObjectHandle random_state_object_handle)
 {
     _is_disposed = false;
     _random_state_object_handle = random_state_object_handle;
 }