Request: Random selection

 From:  Frenchy Pilou (PILOU)
3927.1 
A little script can make this?
Give from a type selection--> a random selection?

Some object selected ---> select only ~ 30% objects
Some faces selected---select only ~ 35 % faces
Some curves selected --> select only ~ 40% selected
etc
% can be of course any %

A random lenght extrude from a multiple selection?