Board index » delphi » update to ultra rng

update to ultra rng

I'm updating an application which uses the high quality Ultra
psuedorandom number generator written by George Marsaglia (fsultra1 is
the zip available from 1992 or so). This is a really long period PRNG
which has lots of desirable properties for the kinds of simulations I'm
doing.

The code worked fine under a 16 bit model, but the $L fails with delphi
3 because of a 16 bit segment in the .obj file.

I have the .asm files but no 32 bit version of tasm - I probably have
tasm from tp5 or so (!) but no way to recompile the .obj files supplied
in fsultra1.zip. Unfortunately, the .asm code uses macros so I can't use
asm directives in Delphi to compile this stuff.

Does anyone with appropriate tools have the time to reassemble the .asm
files using 32bit data structures please...???

--

Dr Ross Lazarus
Associate Professor and Sub-Dean for Information Technology
Faculty of Medicine, Room 124, A27, University of Sydney,
Camperdown, NSW 2006, Australia
Tel: (+61 2) 93514429 Mobile: +61414872482
Fax: (+61 2) 93515049 Email: ro...@med.usyd.edu.au
http://www.health.usyd.edu.au/people/rossl.htm

 

Re:update to ultra rng


: "Dr. Ross Lazarus" <ro...@med.usyd.edu.au> wrote:

Quote
>I'm updating an application which uses the high quality Ultra
>psuedorandom number generator written by George Marsaglia (fsultra1 is
>the zip available from 1992 or so). This is a really long period PRNG
>which has lots of desirable properties for the kinds of simulations I'm
>doing.

>The code worked fine under a 16 bit model, but the $L fails with delphi
>3 because of a 16 bit segment in the .obj file.

>I have the .asm files but no 32 bit version of tasm - I probably have
>tasm from tp5 or so (!) but no way to recompile the .obj files supplied
>in fsultra1.zip. Unfortunately, the .asm code uses macros so I can't use
>asm directives in Delphi to compile this stuff.

>Does anyone with appropriate tools have the time to reassemble the .asm
>files using 32bit data structures please...???

We are selling

      The Ultimate Random Number Suite

  http://www.shareit.com/programs/100517.htm

which, among other generators, also has an implementation of the
Marsaglia-Zeman generator.

Our code is fully object-oriented (!) and the core 32 bit code of
Marsaglia-Zeman has been rewritten in BASM for maximum speed. The
object-orientation relieves you of some particular problems:
reproducibility of random streams in multi-threaded code, it allows
state streaming and state copying.

I do (somewhere) have a straight-forward "classic" procedural
implementation, but am only using our object-oriented version.

The 16 bit code uses an Object Pascal implementation of the algorithm
and is interface compatible with the 32 bit version.

--
Stefan.Hoffmeister (at) Uni-Passau.de

Private email regarding Delphi will usually be ignored
unless it has been expressedly invited.

Other Threads