Randomise IDs in Mysql

Soldato
Joined
4 Jul 2004
Posts
2,647
Location
aberdeen
Hello,
I have a database, but i want to reorder it so they're all random.
Is there an easy to way to do this?
I can't just set it so that the id becomes a new id (as there will be duplications).
 
I display them like as news posts.
A lot of the "posts" next to each other (ie, 55,56,57,58) are all very similar. So it want to jumble them up.
 
I don't want just a random one (or three).
I need to reset the ID's to something else, easily.

It is a complicated (ish) script, that is basically like a news script. It has multiple pages (as it splits pages up into groups of 10 posts).

Using that method won't work I dont think
 
Thanks. But nah, didn't really help. This isn't so much a PHP, more a mysql question. I just need to reorder the ID's in a table, randomly (or at least... so it is different to what it is now).
 
Back
Top Bottom