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

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

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