Discuss this help topic in SecureBlackbox Forum


TElRandom     See also     

Filter: C#/Java  VB.NET  Pascal  C++  PHP  

This method generates a sequence of pseudorandom values.


    void Generate(ref byte[] Buffer, int Count);
    byte[] Generate(int Count);
    void Generate(System.IO.Stream Stream, int Count);

    Sub Generate(ByRef Buffer As Byte(), ByVal Count As Integer
    Function Generate(ByVal Count As Integer) As Byte()
    Sub Generate(ByVal Stream As System.IO.Stream, ByVal Count As Integer)

    procedure Generate(Buffer : pointer; Count : integer);
    function Generate(Count : integer) : string;
    procedure Generate(Stream : TStream; Count : integer);

    void Generate(int32_t Count, std::vector<uint8_t> &OutResult);
    void Generate(void * Buffer, int32_t Count);
    void Generate(TStream &Stream, int32_t Count);
    void Generate(TStream *Stream, int32_t Count);

    string Generate(integer $Count)
    void Generate(TSBPointer|array of byte|string|NULL $Buffer, integer $Count)
    void Generate(TStream $Stream, integer $Count)


  • Buffer - The buffer where to put pseudorandom sequence of bytes
  • Count - The requested number of random bytes
  • Stream - Stream where to write pseudorandom sequence of bytes

Return value

    Newly created string with pseudorandom number.


    Use this method to generate a sequence of pseudorandom bytes.

See also:     Randomize    

Discuss this help topic in SecureBlackbox Forum