SpecT Posted April 22, 2015 Share Posted April 22, 2015 (edited) Hello guys! I searched for something similar but didn't find ... So I want to get a random string from a table. I have a table with names of songs. So how could I get random song? Thanks in advance! Edited April 22, 2015 by Guest Link to comment
Mega9 Posted April 22, 2015 Share Posted April 22, 2015 value = yourTable[math.random(#yourTable)] Try that. Link to comment
SpecT Posted April 22, 2015 Author Share Posted April 22, 2015 value = yourTable[math.random(#yourTable)] Try that. Oh, thanks dude! Worked like a charm Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now