mirror of
https://github.com/n05la3/cmdtypist
synced 2024-11-05 21:20:23 +00:00
tips using srand
This commit is contained in:
parent
8beb005a67
commit
507cac4fdd
@ -844,6 +844,8 @@ extern void waiting(char *wait_style)//style in waiting for input.
|
||||
|
||||
extern void lesson_list(void)
|
||||
{
|
||||
srand((unsigned)time(NULL));
|
||||
unsigned short n=rand()%14;
|
||||
puts("LESSONS, use command <select 'lesson number' to make a choice: "
|
||||
"\n1: Beginner lessons"
|
||||
"\n2: Shell programming"
|
||||
|
Loading…
Reference in New Issue
Block a user