randomSelect demonstrates an easy way of randomizing the selection of a given number of objects.
The user can specify a percentage of up to how many objects should be considerred relative (percent) to the number of objects in the current selection. If nothing is selected prior to calling the script then all page items of the foremost document are set as the initial selection. (Source : Adobe Exchange)
Select some object and launch the script !