Discussion in 'BukkitDev Information and Feedback' started by TruDan, Sep 22, 2012.
I think at the plugin search for bukkitdev, a "Random plugin" button would be cool.
Oh, snap... Well I will give that a try. Thanks for pointing that out (again). Still, the plain text would be lighter and simpler still...
Yeah, but might aswell use the rss If you read earlier in the thread, i even posted my source code for the images from the rss feed.
Added #8, Please let me know what you think
That would be cool, I can't imagine it would be too hard either. If each project is assigned to an id in a MySQL database (which it most likely is) then you just have to generate a random number in PHP and then get the project by id. That would be cool!
MySQL actually has a random thing in it, i cannot remember it from the top of my head, but i have used it before.
Is it not something like this
ORDER BY RAND()
and then you add LIMIT 1
ORDER BY RAND()
Possibly something like that, might be WHERE `id`=RAND() something or other, however that one you put looks like the one O.0
Good point actually, I think both will work.
Yeah, they probably would, your one looks cleaner
Also, Updated first post: Added a script for permalink
ORDER BY RAND() will generate a random number for every row in the table, gets slow for large tables.
On topic: I like 7), would be nice for people to see that something is going on in the background.
Your ones faster
:O tbh i didnt even know if it would work i just remembered i did it something like that remembered RAND() so just stuck it in somewhere :3
Separate names with a comma.