I was wondering if it's was possible to order section entries by random.
Example:
{% for entry in craft.entries.section('team').type('mainPeople').order('title random)) %}
You can use MySQL's RAND() function inside your order method:
{% for entry in craft.entries.section('team').type('mainPeople').order('RAND()') %}
.order()
is deprecated in Craft 3 and doesn't work in Craft 4, use orderBy()
instead.
{% for entry in craft.entries.section('team').type('mainPeople').orderBy('RAND()') %}