BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 15 Oct 2013 05:50 PM |
I have no idea how to do this
lets say i have a table with
table = {1,2,3}
print(#table)
How would I make it print one value in the table using math.random()? |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2013 05:51 PM |
| print(table[math.random(#table)]) |
|
|
| Report Abuse |
|
|
GGGGG14
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25344 |
|
|
| 15 Oct 2013 05:52 PM |
print(table[math.random(#table)])
^
there you go |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
| |
|