• Home
  • Knowledgebase
  • Blog
  • My Account
  • Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • My Account
  • Try VertexFX

Math Functions

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

Randomize

41 views 0 Updated on December 27, 2023 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

  MathRnd

MathExp  

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 2024 hybridsolutions.com. All Rights Reserved.