Skip to main content

Dynamical creation of Mersenne twisters

Project description

This module is a thin Python wrapper over C library dcmt, created by Makoto Matsumoto and Takuji Nishimura, authors of Mersenne twister RNG algorithm. The original library provides functions for creating multiple independent RNGs (which can be used, for example, in parallel Monte-Carlo simulations).

The package contains intact dcmt sources (except for example folder) and exports some functions and structures from its API. For licensing on original library and other information please see the link above, or src/dcmt/README file and sources.

The version of the module corresponds to the version of original library, with the addition of the build number. For example, the wrapper on top of dcmt 0.6.1 may have version like 0.6.1-10. Module documentation can be found here

Changelog

0.6.1-2

  • Shortened function names: create_mts(), init_mt()

  • Removed get_random() and added rand(), which returns numpy array

  • Added create_mts_stripped(), currently as a ‘half-documented’ feature

0.6.1-1

  • Three basic functions: create_generators(), init_generator() and get_random() (returns integer)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcmt-0.6.1-2.tar.gz (31.5 kB view details)

Uploaded Source

File details

Details for the file dcmt-0.6.1-2.tar.gz.

File metadata

  • Download URL: dcmt-0.6.1-2.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dcmt-0.6.1-2.tar.gz
Algorithm Hash digest
SHA256 7e39b44a8b66854d638f1d4ee4f3a343a3b594819a4e0bfd2bf968dee35a05ed
MD5 567fe07bc2460ae888043458f69f002f
BLAKE2b-256 2439ceaba34342434c9ca1caa67ec677387e4557053c3f28fe6b559a47c3ac23

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page