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/Randomize

Randomize

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

Syntax

Public Sub Randomize(Optional Number As Double)

Description

This sub procedure is used toinitially seed the random number generator. Then, to generate a random number, you must use the MathRnd function.

Parameters

Key Description
Number The new seed value.An optional value of type double.

Return value

No returned value.

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

  • MathRnd
  • MathRound
  • MathSin


Back to VTL Client Script Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  MathLog

MathRnd  

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
  • Mobile Trader
  • Lite VertexFX Mobile Trader
  • Release Notes
  • Technical Support
  • VertexFX Pro Setup
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.