Property SLRandomGen.TSLRandomGen.Seed

From Mitov Wiki Doc
(Difference between revisions)
Jump to: navigation, search
(Automated Syncronization with Documentation)
 
(Automated Syncronization with Documentation)
 
(5 intermediate revisions by one user not shown)
Line 10: Line 10:
 
=== Delphi: ===
 
=== Delphi: ===
 
<code>
 
<code>
'''property''' Seed : Cardinal '''read''' FSeed '''write''' FSeed '''default''' 31192;
+
'''property''' Seed : Cardinal '''read''' FSeed '''write''' SetSeed '''default''' 31192;
 
</code>
 
</code>
  
 
=== C++ Builder: ===
 
=== C++ Builder: ===
 
<code>
 
<code>
'''__property''' unsigned int Seed = { '''read'''=FSeed,  '''write'''=FSeed,  '''default'''=31192 };
+
'''__property''' unsigned int Seed = { '''read'''=FSeed,  '''write'''=SetSeed,  '''default'''=31192 };
 
</code>
 
</code>
  

Latest revision as of 00:11, 26 June 2013

This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.

Class: TSLRandomGen

Contents

Syntax

Delphi:

property Seed : Cardinal read FSeed write SetSeed default 31192;

C++ Builder:

__property unsigned int Seed = { read=FSeed, write=SetSeed, default=31192 };

Summary

Initial seed value for the pseudo-random number generation.

Description

Use this property to specify the initial seed value used by the pseudo-random number generation algorithm.


Delphi example:

SLRandomGen1.Seed := 2000;

C++ Builder example:

SLRandomGen1->Seed = 2000;

Visual C++(MFC) example:

SLRandomGen1.Seed = 2000;

C# example:

randomGen1.Seed = 2000;

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox