To sort a table results randomly use the ORDER by RAND(); option.

eg. Select * from table_name ORDER by RAND();