package test;

import java.util.Random;

import com.ibm.rational.test.lt.kernel.services.ITestExecutionServices;

/**
 * @author unknown
 */
public class RandomStock_viewQuote implements
		com.ibm.rational.test.lt.kernel.custom.ICustomCode2 {

	static Random random = new Random(); 
	/**
	 * Instances of this will be created using the no-arg constructor.
	 */
	public RandomStock_viewQuote() {
	}

	/**
	 * For javadoc of ICustomCode2 and ITestExecutionServices interfaces, select 'Help Contents' in the
	 * Help menu and select 'Extending Rational Performance Tester functionality' -> 'Extending test execution with custom code'
	 */
	public String exec(ITestExecutionServices tes, String[] args) {
		return ("s:" + String.valueOf(random.nextInt(Integer.parseInt(args[0]))));
	}

}
