Mersenne Twister Random Number Generator Add-In

4.5
Moyenne : 4.5 (2 votes)

This extension provides pseud-random number generator based on Mersenne Twister algorithm which has 2^19937 -1 period, as an spreadsheet function add-in. And the generator as an UNO component is also provided.

Implementation of the generator is based on Richard J. Wagner's C++ MTRand class.

How to Install

  1. Install the extension package from Tools - Extension Manager.
  2. Re-start your office.

Spreadsheet functions

=MTRAND()
Generates pseud-random number between 0 to 1 in [0,1).
This result is one of 32-bit random numbers.
=MTRANDBETWEEN(Bottom;Top)
Generates pseud-random integer number between Bottom to Top in [Bottom,Top].

You can specify a seed for initialization of the generator through Tools - Options - Calc - MT Random page. See help page for detail.

They can be found in the Mathematical category.

UNO component: mytools.math.MTRandom service.

Original RAND function should use MT, and an issue is opened: http://www.openoffice.org/issues/show_bug.cgi?id=14730 .

Compatible avec: OpenOffice.org 3.4
PlatformTéléchargerDétails sur le produitDateTaille
LinuxTélécharger l'extension0.2.12010-nov.-2169.89 Ko
WindowsTélécharger l'extension0.2.1-Win322010-nov.-2156.75 Ko
WindowsTélécharger l'extension0.2.22011-déc.-0655.75 Ko
LinuxTélécharger l'extension0.2.2-Linux-x862011-déc.-0668.29 Ko
Licence: Opensource

Téléchargements: Aujourd'hui: 1 | Semaine: 28 | Mois: 56 | Année: 1,133