Demonstrate how to pick a random element from a list.




% Implemented by Arjun Sunel
-module(pick_random).
-export([main/0]).
 
main() ->
	List =[1,2,3,4,5],
	Index = rand:uniform(length(List)),
	lists:nth(Index,List).
 