Copy (RandomNumberGenerator function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<span style="font-size:120%; color:black"><b>Copy specified RandomNumberGenerator object</b></span>
{{Template:RandomNumberGenerator:Copy subtitle}}
[[Category:RandomNumberGenerator methods|Copy function]]
<!--DPL?? Category:RandomNumberGenerator methods|Copy function: Copy specified RandomNumberGenerator object-->
<!--DPL?? Category:System methods|Copy (RandomNumberGenerator function): Copy specified RandomNumberGenerator object-->
<p>
Copy is a member of the [[RandomNumberGenerator class]].
</p>


This method returns a RandomNumberGenerator object that is a copy
This method returns a RandomNumberGenerator object that is a copy
Line 11: Line 5:


For more information about copyability, see [[Copying objects]].
For more information about copyability, see [[Copying objects]].
===Syntax===
==Syntax==
  %newrand = %rand:Copy
{{Template:RandomNumberGenerator:Copy syntax}}
===Syntax terms===
===Syntax terms===
<dl>
<dl>
Line 21: Line 15:


</dl>
</dl>
===Usage Notes===
==Usage notes==
<ul>
<ul>
<li>The method object (''%rand'') may be null.
<li>The method object (''%rand'') may be null.
The output of a copy of a null object is a null object.
The output of a copy of a null object is a null object.
</ul>
</ul>
==See also==
{{Template:RandomNumberGenerator:Copy footer}}

Revision as of 19:47, 6 February 2011

Copy this RandomNumberGenerator (RandomNumberGenerator class)


This method returns a RandomNumberGenerator object that is a copy of the method object.

For more information about copyability, see Copying objects.

Syntax

%outRandomNumberGenerator = randomNumberGenerator:Copy

Syntax terms

%newrand
A RandomNumberGenerator object variable to contain the copied object.
%rand
A RandomNumberGenerator object variable.

Usage notes

  • The method object (%rand) may be null. The output of a copy of a null object is a null object.

See also