Jump to: navigation, search

Difference between revisions of "Random"

(Created page with "====Random==== =====Random.Number(ByVal inMin As Integer, ByVal inMax As Integer) As Integer===== *Description=''Returns a whole number from inMin to inMax.'' ;'''Values'''...")
 
 
Line 2: Line 2:
  
  
=====Random.Number(ByVal inMin As Integer, ByVal inMax As Integer) As Integer=====
+
=====Random.Number(inMin As Integer, inMax As Integer) As Integer=====
 
*Description=''Returns a whole number from inMin to inMax.''
 
*Description=''Returns a whole number from inMin to inMax.''
 
;'''Values'''
 
;'''Values'''
Line 11: Line 11:
  
  
=====Random.NumberDouble(ByVal one As Double, ByVal two As Double) As Double=====
+
=====Random.NumberDouble(one As Double, two As Double) As Double=====
 
*Description=''Returns a decimal number from one to two. I.E. if 'one' was 0.5, and 'two' was 2, you could roll a 0.542. Rounded to the third decimal point maximum.''
 
*Description=''Returns a decimal number from one to two. I.E. if 'one' was 0.5, and 'two' was 2, you could roll a 0.542. Rounded to the third decimal point maximum.''
 
;'''Values'''
 
;'''Values'''

Latest revision as of 14:31, 5 October 2018

Random

Random.Number(inMin As Integer, inMax As Integer) As Integer
  • Description=Returns a whole number from inMin to inMax.
Values
  • inMin=The minimum value.
  • inMax=The maximum value.
  • Returns=The number rolled.
  • Example=Random.Number(1,100)


Random.NumberDouble(one As Double, two As Double) As Double
  • Description=Returns a decimal number from one to two. I.E. if 'one' was 0.5, and 'two' was 2, you could roll a 0.542. Rounded to the third decimal point maximum.
Values
  • one=The minimum value. Can use decimal points.
  • two=The maximum value. Can use decimal points.
  • Returns=The number rolled, up to three decimal points long.
  • Example=Random.NumberDouble(0.5, 0.7)