[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

### 6.2.17 -D__BP_RANDOM__ - BP compatible pseudo random number generator

GPC uses a more elaborate pseudo random number generator than BP does. Using the ``Random'` and ``Randomize'` functions works the same way, but there is no ``RandSeed'` variable (but a ``SeedRandom'` procedure). However, if you use the ``System'` unit (see section 6.2.14 - -uses=System - Swap; HeapError; etc.) and define the symbol ``__BP_RANDOM__'` (by giving ``-D__BP_RANDOM__'` on the command line), it will provide a 100% BP compatible pseudo random number generator, including the ``RandSeed'` variable, which will produce exactly the same sequence of pseudo random numbers that BP's pseudo random number generator does. Even the ``Randomize'` function will then behave exactly like in BP.

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html