Digital Workshop http://forum.digitalworkshop.co.uk/ |
|
Random name from a list of 25. http://forum.digitalworkshop.co.uk/viewtopic.php?f=29&t=4286 |
Page 1 of 1 |
Author: | terry burlace [ January 17th, 2011, 8:27 pm ] |
Post subject: | Random name from a list of 25. |
I'm sure this has been covered elsewhere but I've not been able to find it. I want to create a text box that display a random name from a list of 25 possible names. I've managed to create an array variable (<randomname>)with the names stored as elements in that variable. I can display a single name using the Constant Expression <randomname[n]> . Is there a way of replacing the fixed value [n] with a random value between 0 and 24. As I'm using Creator I can't do this with a script. Thanks in advance. Terry |
Author: | mackavi [ January 17th, 2011, 9:57 pm ] |
Post subject: | Re: Random name from a list of 25. |
Hi Terry, Shooting blind as I don't have creator, but you might be able to do this: Use the random action (on a button etc) on the programming tab / variables to assign a random number to a variable. Then place the variable in the constant expression. Mack |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |