jessica_mitran13 years agoGenerate random numbers in JScriptHello, Is there any way to generate random numbers in JScript scripts? I noticed that there is a Random() function in DelphiScript, but there are no analogous ones for JScript. JessicaShow More
karkadilValued Contributor13 years agoThis JScript function will generate a random integer within a given intervalfunction randInt(min, max){ return Math.round(Math.random()*(max-min)+min)}method Math.random() returns a random number between 0 and 1
Related ContentGenerate a random number within a rangeHow to generate a random Number, String, AlphaNumeric string[TechCorner Challenge #9] Generate a random number within a rangeGenerate JSON SchemasRename Test Case Number
Recent DiscussionsDynamic ObjectPulling in Dynamic Links from a web pageMultiple execution of a test plan with different values from an Excel tableYour thoughts about a REST API in TestCompleteKeyword Test - Click - use -1, -1 by default?