亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mt.h

?? A C++ class library for scientific computing
?? H
字號:
/* * $Id: mt.h,v 1.6 2005/10/13 20:08:53 julianc Exp $ * * A C-program for MT19937: Integer version (1998/4/6)             *  genrand() generates one pseudorandom unsigned integer (32bit)  * which is uniformly distributed among 0 to 2^32-1  for each     * call. sgenrand(seed) set initial values to the working area    * of 624 words. Before genrand(), sgenrand(seed) must be         * called once. (seed is any 32-bit integer except for 0). *   Coded by Takuji Nishimura, considering the suggestions by     * Topher Cooper and Marc Rieffel in July-Aug. 1997.              * * This library is free software; you can redistribute it and/or  * modify it under the terms of the GNU Library General Public    * License as published by the Free Software Foundation; either     * version 2 of the License, or (at your option) any later          * version.                                                         * This library is distributed in the hope that it will be useful,  * but WITHOUT ANY WARRANTY; without even the implied warranty of   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.             * See the GNU Library General Public License for more details.     * You should have received a copy of the GNU Library General       * Public License along with this library; if not, write to the     * Free Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA     * 02111-1307  USA                                                  * * Copyright (C) 1997 Makoto Matsumoto and Takuji Nishimura.        * When you use this, send an email to: matumoto@math.keio.ac.jp    * with an appropriate reference to your work.                      * * REFERENCE                                                        * M. Matsumoto and T. Nishimura,                                   * "Mersenne Twister: A 623-Dimensionally Equidistributed Uniform * Pseudo-Random Number Generator",                                 * ACM Transactions on Modeling and Computer Simulation,            * Vol. 8, No. 1, January 1998, pp 3--30.                           * * See  *     http://www.math.keio.ac.jp/~matumoto/emt.html * and *     http://www.acm.org/pubs/citations/journals/tomacs/1998-8-1/p3-matsumoto/ * */#ifndef BZ_RAND_MT#define BZ_RAND_MT#include <blitz/blitz.h>#include <vector>#include <string>#include <sstream> #include <iostream>#include <iterator>#ifndef UINT_MAX  #include <limits.h>#endifBZ_NAMESPACE(ranlib)class MersenneTwister{public:#if UINT_MAX < 4294967295U  typedef unsigned long twist_int;  // must be at least 32 bits#else  typedef unsigned int twist_int;#endifprivate:#if defined(BZ_HAVE_NAMESPACES) && defined(BZ_HAVE_STD)  typedef std::vector<twist_int> State;#else  typedef vector<twist_int> State;#endif  typedef State::iterator Iter;  struct BitMixer {    enum { K = 0x9908b0df };    BitMixer() : s0(0) {}    inline twist_int low_mask (twist_int s1) const {      return (s1&1u) ? K : 0u;    }    inline twist_int high_mask (twist_int s1) const {      return ((s0&0x80000000)|(s1&0x7fffffff))>>1;    }    inline twist_int operator() (twist_int s1) {      twist_int r = high_mask(s1) ^ low_mask(s1);      s0 = s1;      return r;    }    twist_int s0;  };enum { N = 624, PF = 397, reference_seed = 4357 };    void initialize()  {    S.resize(N);    I = S.end();  } public:   MersenneTwister()  {    initialize();    seed();    // There is a problem: static initialization + templates do not    // mix very well in C++.  If you have a static member    // of a class template, there is no guarantee on its order iin    // static initialization.  This MersenneTwister class is used    // elsewhere as a static member of a template class, and it is    // possible (in fact, I've done so) to create a static initializer    // that will invoke the seed() method of this object before its    // ctor has been called (result: crash).     // ANSI C++ is stranger than fiction.    // Currently the documentation forbids using RNGs from    // static initializers.  There doesn't seem to be a good    // fix.  }  MersenneTwister(twist_int initial_seed)  {    initialize();    seed(initial_seed);  }  void seed (twist_int seed = reference_seed)  {    // seed cannot equal 0    if (seed == 0)      seed = reference_seed;    enum { Knuth_A = 69069 };     twist_int x = seed & 0xFFFFFFFF;    Iter s = S.begin();    twist_int mask = (seed == reference_seed) ? 0 : 0xFFFFFFFF;    for (int j = 0; j < N; ++j) {      // adding j here avoids the risk of all zeros       // we suppress this term in "compatibility" mode        *s++ = (x + (mask & j)) & 0xFFFFFFFF;       x *= Knuth_A;    }    reload();  }  void reload (void)  {    // This check is required because it is possible to call random()    // before the constructor.  See the note above about static    // initialization.    Iter p0 = S.begin();    Iter pM = p0 + PF;    BitMixer twist;    twist (S[0]); // prime the pump    for (Iter pf_end = S.begin()+(N-PF); p0 != pf_end; ++p0, ++pM)      *p0 = *pM ^ twist (p0[1]);    pM = S.begin();    for (Iter s_end = S.begin()+(N-1); p0 != s_end; ++p0, ++pM)      *p0 = *pM ^ twist (p0[1]);    *p0 = *pM ^ twist (S[0]);    I = S.begin();  }  inline twist_int random (void)  {    if (I >= S.end()) reload();    twist_int y = *I++;    y ^= (y >> 11);    y ^= (y <<  7) & 0x9D2C5680;    y ^= (y << 15) & 0xEFC60000;    y ^= (y >> 18);    return y;  }  // functions for getting/setting state  class mt_state {    friend class MersenneTwister;  private:    State S;    int I;  public:     mt_state() { }    mt_state(State s, int i) : S(s), I(i) { }    mt_state(const std::string& s) {      std::istringstream is(s);      is >> I;      S = State(std::istream_iterator<twist_int>(is),		std::istream_iterator<twist_int>());      assert(!S.empty());    }    operator bool() const { return !S.empty(); }    std::string str() const {      if (S.empty())	return std::string();      std::ostringstream os;      os << I << " ";      std::copy(S.begin(), S.end(),		std::ostream_iterator<twist_int>(os," "));      return os.str();    }  };    typedef mt_state T_state;  T_state getState() const { return T_state(S, I-S.begin()); }  std::string getStateString() const {    T_state tmp(S, I-S.begin());    return tmp.str();  }  void setState(const T_state& s) {    if (!s) {      std::cerr << "Error: state is empty" << std::endl;      return;    }     S = s.S;    I = S.begin() + s.I;  }  void setState(const std::string& s) {    T_state tmp(s);    setState(tmp);  }  private:  State   S;  Iter    I;};BZ_NAMESPACE_END#endif // BZ_RAND_MT

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕国产精品一区二区| 亚洲一区二区视频在线| 91免费视频大全| 免费观看在线综合| 一区二区成人在线| 国产欧美日韩在线| 555夜色666亚洲国产免| www.亚洲国产| 国产一区二区中文字幕| 日本欧美一区二区| 亚洲欧美日韩电影| 国产日韩精品视频一区| 日韩一区二区三区免费看| 色综合久久天天综合网| 国产麻豆精品在线观看| 日韩黄色小视频| 亚洲一区二区三区在线播放| 欧美国产日韩亚洲一区| 精品久久一区二区三区| 欧美日韩精品欧美日韩精品一 | 欧美成人精品高清在线播放| 欧美日韩一区三区| 成人av中文字幕| 国产麻豆精品95视频| 久久不见久久见免费视频1 | yourporn久久国产精品| 国产一级精品在线| 久久99国产精品尤物| 日韩av一级电影| 婷婷综合在线观看| 亚洲国产精品视频| 亚洲一区日韩精品中文字幕| 亚洲色图20p| 国产精品久线在线观看| 久久精品亚洲一区二区三区浴池| 欧美一区二视频| 91精品国产欧美一区二区18| 宅男在线国产精品| 91精品国产综合久久精品图片 | 99精品久久只有精品| 成人网男人的天堂| 99热在这里有精品免费| 99re视频精品| 欧美综合色免费| 欧美日韩黄视频| 欧美电影在线免费观看| 5月丁香婷婷综合| 日韩欧美另类在线| 久久亚洲二区三区| 欧美激情一区二区在线| 亚洲欧洲另类国产综合| **欧美大码日韩| 亚洲人精品午夜| 一区二区三区四区精品在线视频 | 精品日产卡一卡二卡麻豆| 精品国产一二三区| 国产视频一区在线播放| 国产精品家庭影院| 亚洲综合在线观看视频| 五月天视频一区| 久久精品国产成人一区二区三区 | 青青草原综合久久大伊人精品| 男男成人高潮片免费网站| 精品一区二区三区不卡| 国产成人免费在线观看不卡| 91免费观看国产| 欧美一级视频精品观看| 欧美韩国日本不卡| 亚洲一区二区三区自拍| 九九视频精品免费| 春色校园综合激情亚洲| 欧美在线观看禁18| 精品裸体舞一区二区三区| 中文字幕巨乱亚洲| 五月天激情综合| 国产成人久久精品77777最新版本| 99精品视频一区二区三区| 51午夜精品国产| 亚洲国产精品ⅴa在线观看| 亚洲成人福利片| 国产91精品欧美| 欧美精品亚洲二区| 久久久99精品久久| 亚洲成人精品一区| 成人久久视频在线观看| 7777精品伊人久久久大香线蕉| 久久久久久久网| 亚洲1区2区3区视频| 国产高清不卡一区| 欧美嫩在线观看| 亚洲欧洲日韩在线| 韩国v欧美v日本v亚洲v| 欧美日韩一级片网站| 国产女主播视频一区二区| 天堂一区二区在线免费观看| 成人爽a毛片一区二区免费| 制服丝袜av成人在线看| 亚洲色图第一区| 国产精品亚洲一区二区三区在线| 欧美网站一区二区| 国产精品久久久久7777按摩| 精品一区二区三区影院在线午夜| 日本精品视频一区二区| 亚洲国产精品精华液2区45| 免费精品视频最新在线| 91国产丝袜在线播放| 国产精品伦理在线| 激情文学综合插| 337p亚洲精品色噜噜| 亚洲蜜臀av乱码久久精品 | 4438x亚洲最大成人网| 国产精品国产成人国产三级| 狠狠色丁香久久婷婷综合_中 | 精品人伦一区二区色婷婷| 亚洲福利视频三区| 在线看国产一区二区| 中日韩免费视频中文字幕| 黄色精品一二区| 欧美不卡视频一区| 日韩国产欧美在线播放| 欧美性大战xxxxx久久久| 中文字幕日韩精品一区| 成人一区二区三区在线观看| 久久久五月婷婷| 国产真实乱偷精品视频免| 欧美一级精品在线| 日韩精品成人一区二区三区| 欧美日韩不卡在线| 日韩一区精品字幕| 欧美美女网站色| 五月婷婷另类国产| 777奇米成人网| 美女视频黄 久久| 欧美va在线播放| 久久国产人妖系列| 久久尤物电影视频在线观看| 精品亚洲成a人| www欧美成人18+| 国产精品一区三区| 欧美经典一区二区三区| 粉嫩av一区二区三区粉嫩| 国产精品欧美一区二区三区| 大白屁股一区二区视频| 国产精品夫妻自拍| 91电影在线观看| 午夜精品久久久久影视| 欧美一二三四区在线| 国产在线播放一区三区四| 久久综合久久鬼色中文字| 国产成人午夜精品5599| 中文字幕一区二区三区在线不卡| 99精品欧美一区二区三区小说 | 国产精品一区在线观看乱码 | 欧美mv日韩mv国产网站| 国产精品综合在线视频| 欧美经典一区二区三区| 色综合色狠狠天天综合色| 亚洲小少妇裸体bbw| 欧美精品精品一区| 韩国一区二区视频| 中文字幕第一区第二区| 91精品1区2区| 日产欧产美韩系列久久99| 亚洲精品在线观| 99re成人在线| 天堂成人国产精品一区| 久久久精品免费网站| 91色.com| 免费成人在线视频观看| 欧美国产激情一区二区三区蜜月| 91免费在线视频观看| 日韩激情视频在线观看| 国产日韩亚洲欧美综合| 日本久久精品电影| 激情深爱一区二区| 一区二区三区波多野结衣在线观看| 欧美日韩久久久久久| 国产精品自拍av| 亚洲成av人片一区二区三区| 久久这里只有精品视频网| 91国偷自产一区二区开放时间 | 日日嗨av一区二区三区四区| 久久综合精品国产一区二区三区| 99精品视频在线播放观看| 蜜臂av日日欢夜夜爽一区| 国产精品久99| 欧美大片日本大片免费观看| 99久久精品99国产精品| 久久精品国产色蜜蜜麻豆| 亚洲精品国产精华液| 久久久精品综合| 欧美久久久久久久久久| 成人av动漫在线| 免费av成人在线| 亚洲一二三级电影| 国产精品久久久久久亚洲毛片| 日韩欧美国产午夜精品| 在线视频一区二区免费| 国产精品一区二区男女羞羞无遮挡| 婷婷综合久久一区二区三区|