Gjrand v3.4.0 release C-language pseudo-random number generator

Source: Internet
Author: User
Keywords C language Gjrand pseudo random number
Tags applications code distribution games high note programmer pseudo random number

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.

Download Address: Http://sourceforge.net/projects/gjrand/files/gjrand/gjrand.3.4.0/gjrand-3.4.0.tar.bz2/download

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.