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 agoHere is an example of such code using the randInt() function I provided earlier.function generateTwoNumbers(){ var n1, n2; n1 = n2 = randInt(1, 9); while(n2 == n1) { n2 = randInt(1, 9); }}
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 DiscussionsAccess a child in a tree Structure through Keyword StrokesTurn off all Edge messageboxesHow to verify data from another application, the data which keeps changingAudit and Reporting purposesTextbox values disappear after adding Year value from Date Picker