randtest.c
来自「序列对齐 Compare a protein sequence to a pr」· C语言 代码 · 共 22 行
C
22 行
#include <stdio.h>#include <stdlib.h>#include <sys/time.h>main(argc, argv) int argc; char **argv;{ int i, n, s; struct timeval t; if (argc < 2) n = 10; else n = atoi(argv[1]); gettimeofday(&t,NULL); printf(" seed: %d\n",t.tv_usec); srandom(t.tv_usec); for (i=0; i< n; i++) printf("%3d\n",random()%100);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?