Login
Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • Home
  • Knowledgebase
  • Blog

Math Functions

home/Knowledge Base/Technical Support/API/Client API's/VTL/VTL Client Scripts/Math Functions/MathRnd

MathRnd

4 views 0 Updated on December 16, 2021 hybrid-solutions

Syntax

Public Function MathRnd(Optional Number As Double) As Single

Description

This function is used to produce random numberless than 1 but greater than or equal to zero.

Parameters

Key Description
Number An optional numeric value which determines howRnd methodgenerates a random numbe.

Return value

Value Return Result
Less than zero The same number every time , using number as the seed.
Greater than zero The next random number in the sequence.
Equal to zero The most recently generated number.
Not supplied The next random number in the sequence.

Sample

Public Sub main()' Initialize the random number generator.Randomize  AlertMessage MathRnd()*6+1   ' The result will be a random value of type double between 1 and 6 End Sub

See Also

  • MathRound
  • MathSin
  • MathSgn


Back to VTL Client Script Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  Randomize

MathRound  

About
VertexFX Trader has a closed-loop trading structure with Backoffice dealing desk, Client Terminals, Dedicated Hosting, White Labelling and Bridging Capabilities. Through VertexFX Risk Management Bridge...
Categories
  • Release Notes
  • Technical Support
  • VertexFX Pro Setup
  • Mobile Trader
  • Lite VertexFX Mobile Trader
Community
  • Blog
  • Media Center
Need Support?
If you need any further help, don't hesitate to send a support request to our support team.
Contact Support
  • Privacy Policy
  • Brokers Terms
  • Traders EULA
  • ISV Terms
  • Plugins EULA
  • Copyright 2023 hybridsolutions.com. All Rights Reserved.