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

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

?? random.h

?? This software aims to create an applet and panel tools to manage a wireless interface card, such as
?? H
字號(hào):
//
// Random.h
//
// $Id: //poco/Main/Foundation/include/Foundation/Random.h#5 $
//
// Definition of class Random.
//
// Copyright (c) 2004, Guenter Obiltschnig/Applied Informatics.
// All rights reserved.
// 
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 
// 1. Redistributions of source code must retain the above copyright
//    notice, this list of conditions and the following disclaimer.
// 
// 2. Redistributions in binary form must reproduce the above copyright
//    notice, this list of conditions and the following disclaimer in the
//    documentation and/or other materials provided with the distribution.
// 
// 3. Redistributions in any form must be accompanied by information on
//    how to obtain complete source code for this software and any
//    accompanying software that uses this software.  The source code
//    must either be included in the distribution or be available for no
//    more than the cost of distribution plus a nominal fee, and must be
//    freely redistributable under reasonable conditions.  For an
//    executable file, complete source code means the source code for all
//    modules it contains.  It does not include source code for modules or
//    files that typically accompany the major components of the operating
//    system on which the executable file runs.
// 
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
//
// Based on the FreeBSD random number generator.
// src/lib/libc/stdlib/random.c,v 1.13 2000/01/27 23:06:49 jasone Exp
//
// Copyright (c) 1983, 1993
// The Regents of the University of California.  All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
//    notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
//    notice, this list of conditions and the following disclaimer in the
//    documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
//    must display the following acknowledgement:
//    This product includes software developed by the University of
//    California, Berkeley and its contributors.
// 4. Neither the name of the University nor the names of its contributors
//    may be used to endorse or promote products derived from this software
//    without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//


#ifndef Foundation_Random_INCLUDED
#define Foundation_Random_INCLUDED


#ifndef Foundation_Foundation_INCLUDED
#include "Foundation/Foundation.h"
#endif


Foundation_BEGIN


class Foundation_API Random
	/// A better random number generator.
	/// Random implements a pseudo random number generator
	/// (PRNG). The PRNG is a nonlinear additive
	/// feedback random number generator using 256 bytes
	/// of state information and a period of up to 2^69.
{
public:
	enum Type
	{
		RND_STATE_0   =   8,  /// linear congruential
		RND_STATE_32  =  32,  /// x**7 + x**3 + 1
		RND_STATE_64  =  64,  /// x**15 + x + 1
		RND_STATE_128 = 128,  /// x**31 + x**3 + 1
		RND_STATE_256 = 256   /// x**63 + x + 1
	};

	Random(int stateSize = 256);
		/// Creates and initializes the PRNG.
		/// Specify either a state buffer size
		/// (8 to 256 bytes) or one of the Type values.

	~Random();
		/// Destroys the PRNG.

	void seed(UInt32 seed);
		/// Seeds the pseudo random generator with the given seed.

	void seed();
		/// Seeds the pseudo random generator with a random seed
		/// obtained from a RandomInputStream.

	UInt32 next();
		/// Returns the next 31-bit pseudo random number.

	UInt32 next(UInt32 n);
		/// Returns the next 31-bit pseudo random number modulo n.
	
	char nextChar();
		/// Returns the next pseudo random character.
	
	bool nextBool();
		/// Returns the next boolean pseudo random value.
		
	float nextFloat();
		/// Returns the next float pseudo random number between 0.0 and 1.0.
		
	double nextDouble();
		/// Returns the next double pseudo random number between 0.0 and 1.0.

protected:
	void initState(UInt32 seed, char* arg_state, Int32 n);
	static UInt32 goodRand(Int32 x);

private:
	enum
	{
		MAX_TYPES = 5,
		NSHUFF    = 50
	};

	UInt32* _fptr;
	UInt32* _rptr;
	UInt32* _state;
	int     _randType;
	int     _randDeg;
	int     _randSep;
	UInt32* _endPtr;
	char*  _pBuffer;
};


//
// inlines
//
inline UInt32 Random::next(UInt32 n)
{
	return next() % n;
}


inline char Random::nextChar()
{
	return char((next() >> 3) & 0xFF);
}


inline bool Random::nextBool()
{
	return (next() & 0x1000) != 0;
}

	
inline float Random::nextFloat()
{
	return float(next()) / 0x7FFFFFFF;
}

	
inline double Random::nextDouble()
{
	return double(next()) / 0x7FFFFFFF;
}


Foundation_END


#endif // Foundation_Random_INCLUDED

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美国产精品一区二区| 国产精品123| 亚洲一区中文日韩| 亚洲欧美日韩国产手机在线 | 亚洲成av人片在www色猫咪| 中文字幕一区二区三区蜜月| 国产亚洲精久久久久久| 国产精品视频一二三| 国产精品卡一卡二卡三| 亚洲综合在线电影| 欧美aaaaa成人免费观看视频| 偷窥少妇高潮呻吟av久久免费| 奇米精品一区二区三区在线观看 | 不卡高清视频专区| 99久久精品国产一区| 91蜜桃在线观看| 在线成人免费视频| 久久影院视频免费| 中文字幕亚洲一区二区av在线 | 欧美大片一区二区| 777午夜精品免费视频| 国产欧美一区二区三区在线看蜜臀| 亚洲国产激情av| 午夜精品久久久久久久99水蜜桃| 日韩av在线发布| 成人黄色777网| 精品视频资源站| 久久免费电影网| 亚洲一区免费观看| 国产精品一区二区三区99| 97久久精品人人做人人爽50路| 欧美年轻男男videosbes| 久久亚洲欧美国产精品乐播| 亚洲免费观看高清完整版在线| 久久狠狠亚洲综合| 日本丰满少妇一区二区三区| 精品国产免费人成电影在线观看四季 | 国产欧美一区二区精品性色超碰| 亚洲乱码中文字幕| 久久国产精品第一页| 97久久精品人人做人人爽50路| 日韩精品一区二区三区在线| 亚洲视频你懂的| 国产露脸91国语对白| 欧美视频一区在线观看| 国产精品水嫩水嫩| 国产一区二区福利视频| 欧美丝袜第三区| 中文字幕一区二区三| 精品一区二区三区免费观看 | 国产精一区二区三区| 在线播放中文一区| 亚洲三级电影网站| 成人性色生活片| 久久―日本道色综合久久| 亚洲成年人网站在线观看| 91在线视频播放| 中文无字幕一区二区三区| 激情五月婷婷综合| 91精品国产全国免费观看| 亚洲福利一区二区| 色久优优欧美色久优优| 国产精品成人在线观看| 国产 欧美在线| 久久精品亚洲国产奇米99| 久久丁香综合五月国产三级网站| 欧美高清精品3d| 五月婷婷久久综合| 7777精品伊人久久久大香线蕉经典版下载 | 日韩亚洲欧美综合| 婷婷综合五月天| 欧美日韩在线不卡| 亚洲一区二区视频| 在线观看日韩高清av| 亚洲欧美在线视频| 色哟哟国产精品免费观看| 自拍偷在线精品自拍偷无码专区| 国产成人精品综合在线观看| 国产午夜精品在线观看| 懂色av噜噜一区二区三区av| 久久精品网站免费观看| 国产成人av影院| 国产精品久久久久一区二区三区| 国产成人亚洲精品青草天美 | 亚洲免费三区一区二区| 99视频一区二区| 亚洲人亚洲人成电影网站色| 在线欧美日韩精品| 日韩高清电影一区| 精品国产乱码久久久久久浪潮| 国产精品一区二区在线看| 中文字幕在线视频一区| 色成年激情久久综合| 免播放器亚洲一区| 国产欧美日韩三级| 色94色欧美sute亚洲线路一ni | 国产suv精品一区二区6| 综合色天天鬼久久鬼色| 在线日韩一区二区| 激情文学综合丁香| 亚洲视频香蕉人妖| 日韩欧美一级片| youjizz久久| 天天综合色天天综合色h| 欧美成人精品高清在线播放| 成人一区在线看| 日韩专区欧美专区| 国产喷白浆一区二区三区| 色拍拍在线精品视频8848| 免费在线观看成人| 中文字幕中文字幕在线一区 | 成人app软件下载大全免费| 亚洲午夜久久久久久久久电影院| 欧美电视剧免费观看| 色综合久久久久网| 手机精品视频在线观看| 国产精品婷婷午夜在线观看| 欧美日韩在线亚洲一区蜜芽| 国产凹凸在线观看一区二区| 亚洲综合在线第一页| 精品久久国产字幕高潮| 欧美日韩三级在线| 成人午夜在线播放| 久久激五月天综合精品| 午夜精品国产更新| 亚洲理论在线观看| 国产精品久久久久久久久果冻传媒| 884aa四虎影成人精品一区| 色呦呦国产精品| 久久99精品久久久久婷婷| 亚洲成人一区在线| 亚洲精品中文在线| 欧美高清在线视频| 精品久久99ma| 日韩一区二区三区电影| 欧美男女性生活在线直播观看| 99热99精品| 成人网在线播放| 国产成人8x视频一区二区| 精品一区二区在线播放| 日本不卡的三区四区五区| 亚洲成人自拍网| 亚洲乱码日产精品bd| 亚洲久草在线视频| 日韩美女视频一区二区| 亚洲精品一区二区三区四区高清| 欧美精品亚洲一区二区在线播放| 欧美伊人久久大香线蕉综合69| aaa亚洲精品| 99re亚洲国产精品| 97久久人人超碰| 色哟哟国产精品| 色综合久久中文综合久久牛| 成av人片一区二区| 91视频在线观看| 色域天天综合网| 欧美日韩一区二区三区不卡| 一本大道久久a久久综合婷婷| 91首页免费视频| 欧美丝袜丝交足nylons| 欧美日韩国产精品自在自线| 51精品久久久久久久蜜臀| 欧美一区二区在线观看| 精品久久久久久久人人人人传媒 | 亚洲精品免费视频| 亚洲蜜臀av乱码久久精品蜜桃| 中文字幕在线不卡视频| 亚洲色图一区二区三区| 夜色激情一区二区| 日韩在线播放一区二区| 久久精品国产一区二区三| 精品在线观看视频| 国产91精品一区二区麻豆网站| 国产精品99久久久久久久女警| 国产精品一区一区三区| 91亚洲午夜精品久久久久久| 在线亚洲一区二区| 精品久久五月天| 亚洲精品国产视频| 激情偷乱视频一区二区三区| 成人高清伦理免费影院在线观看| 99re热视频这里只精品| 3atv一区二区三区| 国产婷婷色一区二区三区四区| 亚洲精品一卡二卡| 国产在线看一区| 91传媒视频在线播放| 精品播放一区二区| 亚洲欧美日韩在线| 九九精品视频在线看| 色欧美片视频在线观看在线视频| 欧美一级欧美一级在线播放| 国产色一区二区| 免费亚洲电影在线| proumb性欧美在线观看| 欧美日韩你懂的| 综合在线观看色| 高清不卡在线观看| 欧美tickling挠脚心丨vk| 亚洲永久免费视频|