Skill
Create a code that generates a random rating for an Account.
Solution
public static String generateRating(){
List<String> ratingList = new List<String>{'Hot', 'Warm', 'Cold'};
Integer index = Math.mod(Math.round(Math.random() * 100), ratingList.size());
return ratingList.get(index);
}
Video
Video does not exists.