Apex Random Select & Display
- I have an object named Parts__c.
- Parts__c has 2 fields: ABC_Code__c and Parts_Number__c.
- ABC_Code__c is type text and its value range is A, B, or C.
- Parts_Number__c is type Autonumber.
- Object Parts__c has 50 records: 5 A's, 15 B's, and 30 C's.
I need help writing an Apex class that grabs only the C's and randomly lists them each time they're selected.