Discuss this help topic in SecureBlackbox Forum

TElRandom.Generate

TElRandom     See also     


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


This method generates a sequence of pseudorandom values.

Declaration

[C#/Java]
    byte[] Generate(int Count);
    void Generate(ref byte[] Buffer, int Count);
    void Generate(byte[] Buffer, int Offset, int Count);
    void Generate(System.IO.Stream Stream, int Count);

[VB.NET]
    Function Generate(ByVal Count As Integer) As Byte()
    Sub Generate(ByRef Buffer As Byte(), ByVal Count As Integer)
    Sub Generate(ByVal Buffer As Byte(), ByVal Offset As Integer, ByVal Count As Integer)
    Sub Generate(ByVal Stream As System.IO.Stream, ByVal Count As Integer)

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

[C++]
    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);

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

Parameters

  • 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
  • Offset -

Return value

    Newly created string with pseudorandom number.

Description

    Use this method to generate a sequence of pseudorandom bytes.

See also:     Randomize    

Discuss this help topic in SecureBlackbox Forum