help with rand
|
Dec. 07, 2008, 10:02 PM
Post: #1
|
|||
|
|||
help with rand
hey im new here and i wanted to know is it possible to do sendkeys with the rand function?and then echo it?
this is what i have WshShell.SendKeys("benny $num = rand(100,999)") WshShell.SendKeys("~") WScript.Echo "username= benny $num;" |
|||
Dec. 07, 2008, 11:45 PM
Post: #2
|
|||
|
|||
RE: help with rand
Hello!
I'm not familiar with Wsh, but I have some experience with ASP and VBScript, so try this: Code: num = rand(100,999) The main idea is storing the random number in a variable, then displaying the variable in the subsequent lines. I'm not sure if the Rand function exists in Wsh; if it doesn't, I know that "Rnd()" exists. |
|||
« Next Oldest | Next Newest »
|