こんな警告が出ました。

getrand()ってどうするの?

gcc -Wall tech988.c -o tech988
tech988.c: 関数 ‘count’ 内:
tech988.c:50:13: 警告: 関数 ‘getrand’ の暗黙的な宣言です [-Wimplicit-function-declaration]
tech988.c:44:15: 警告: 使用されない変数 ‘j_tmp’ です [-Wunused-variable]
tech988.c:44:9: 警告: 使用されない変数 ‘i_tmp’ です [-Wunused-variable]
tech988.c: 関数 ‘update_field’ 内:
tech988.c:58:9: 警告: 変数 ‘around’ が設定されましたが使用されていません [-Wunused-but-set-variable]
/tmp/ccbIwhYI.o: In function `count':
tech988.c:(.text+0xec): undefined reference to `getrand'
collect2: ld はステータス 1 で終了しました