ORDER BY rand() and group with group_id

I Would like to them to be sorted like below or randomized but still grouped:

id group_id
5 3
3 2
4 2
1 1
2 1
6 4

Below will sort them but i would like the sort to be random. How to achieve this?

SELECT * FROM table ORDER BY group_id DESC

Below is an example query I am figuring out for the actual application.

SELECT * FROM ( SELECT requests.*, accounts.username, accounts.password
FROM requests LEFT JOIN accounts ON requests.acc_id = accounts.id
WHERE requests.status NOT IN(1) AND accounts.status=1 ORDER BY RAND()
) AS subquery GROUP BY acc_id