The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 11-22-2019, 12:18 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting: Pick a random element from a list
02-17-2015, 05:35 PM
Post: #1
Scripting: Pick a random element from a list
Can we have a primitive that picks a random value from a list?

For testing travel sites we want a dynamic value to be picked from a list of airports for example random(Jfk,mco,ord,den,sfo,lhr,las) should return one each time the script runs
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Scripting: Pick a random element from a list - pganti - 02-17-2015 05:35 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)