Skip to content

Instantly share code, notes, and snippets.

@ryank231231
Created August 19, 2021 14:28
Show Gist options
  • Save ryank231231/e5c328dec9dec50adc1f7093cfce44e4 to your computer and use it in GitHub Desktop.
Save ryank231231/e5c328dec9dec50adc1f7093cfce44e4 to your computer and use it in GitHub Desktop.
prpr
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int un_mei_no_sen_ta_ku(size_t arr_length) {
return rand() % arr_length;
}
int main()
{
srand((int)time(NULL) * 114514);
char *emoticon[] = {
"⁄(⁄ ⁄•⁄ω⁄•⁄ ⁄)⁄",
"(≧ ﹏ ≦)",
"(*/ω\*)",
"ヽ(*。>Д<)o゜",
"(つ ﹏ ⊂)"
};
size_t emoticon_size = sizeof(emoticon) / sizeof(emoticon[0]);
printf("%s\n", emoticon[un_mei_no_sen_ta_ku(emoticon_size)]);
}
@ryank231231
Copy link
Author

prpr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment