Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-11-2009, 11:29 PM
ColinJD ColinJD is offline
Member
 
Join Date: May 2009
Posts: 38
Default How Random Are Random Strings

I have creating Random Keys using The Automation Anywhere Random Variable feature, However I have found the keys are becoming repeated on intervals.
The Keys are 8 Characters long,
A work around is to check whether a key exists before permanently assigning it.
Is there a randomiser Seed for Automation Anywhere ?
Reply With Quote
  #2 (permalink)  
Old 06-12-2009, 05:08 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Create VB script that would generate the random numbers between the given range. In script, use the Randomize statement without an argument to initialize the random-number generator with a seed based on the system timer. We have attached a sample script that would generate random numbers between 0-99.

You can call this VB script using 'Run Script' command. The result returned from the script can be assigned to Automation Anywhere variable.

To run attached task,

. Please copy .atmn file under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.
. Copy .vbs under C:\.

Hope that helps.
Attached Files
File Type: zip sample.zip (589 Bytes, 3 views)
Reply With Quote
  #3 (permalink)  
Old 06-13-2009, 07:57 PM
ColinJD ColinJD is offline
Member
 
Join Date: May 2009
Posts: 38
Default

Thank you forumsupport
with a modification or two it, is working to my satisfaction.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 06:06 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved