![]() |
Randomizing?
So, I've been trying to work with making words/ect random.
I understand how to make numbers randomize, But it seems I cannot figure out other things like words. What I have an tried to do, Did not work: PHP Code:
|
Your code doesn't make any sense. this.chat isn't a function. How would it know that what you really want is to append the random number to "this.chat" and read the value of that variable?
The best way is to just make an array. PHP Code:
|
Quote:
Quote:
|
Quote:
|
Quote:
I would probably avoid it clientside for the time being, I'm guessing it's still broken in v5. |
Try something like this:
PHP Code:
PHP Code:
Edit: The array approach looks a lot cleaner though. I must have missed cbk's post. Use that method instead. |
Quote:
|
Quote:
PHP Code:
|
| All times are GMT +2. The time now is 04:52 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.