Pick random element: Difference between revisions

remove duplicate C section
(→‎{{header|PicoLisp}}: Added PureBasic)
(remove duplicate C section)
Line 64:
#include <time.h>
 
int main(){
char array[] = { 'a', 'b', 'c' };
 
srand( time( 0 ) );
 
printf( "%c\n", array[ rand() % 3 ] );
 
return 0;
}</lang>
 
=={{header|C}}==
<lang C>
int main(){
char array[] = { 'a', 'b', 'c' };
Anonymous user