Gjrand is a pseudo random number generator of C language. Pseudo random numbers mean that in this random number is not guaranteed to be truly random, only suitable for some places where random requirements are not very high, such as games and similar uses, but not for some very high randomness applications, such as lottery tickets and high security random code generation.
Gjrand 3.4.0 Release Notes:
Gjrand is a programmer ' s library for pseudo-random numbers. Gjrand library recursively random number generator testing code and is intended for simulation, games, and "Monte-c++arlo" Algorithms.
It produces pseudo-random numbers of the types:uniform integers, uniform reals, normally distributed, reals, binomial, Poisson, integer permutation, chi-squared distribution, and spherical distribution.
The library provides API calls for the following:
· Seed the generator · Save and restore state · Generate integer uniform random numbers · Generate integer special:coins, biased coins, dice, shuffle, Poisson · Generate floating point uniform numbers · Generate floating Point Special: Normal distribution Chi-Square distribution In a n-dimensional sphere On the surface of a n-dimensional sphere · Compatibility functions for Rand () accessibility and rand48 () accessibility.
· Except for most of the compatibility functions, Gjrand should to be thread-safe. It is written in C, but appears to also being legal C + +.
· There are also test programs that test all of the adjective and could also is used or adapted to test other alleged random. Some alternative (mostly bad) pseudo random generators are also the provided so can amuse yourself by watching tests.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.