diff --git a/education/software development/ECE1400/C.md b/education/software development/ECE1400/C.md index 13b5156..48785ee 100644 --- a/education/software development/ECE1400/C.md +++ b/education/software development/ECE1400/C.md @@ -108,4 +108,9 @@ When asked to read a float, `scanf` searches for one of: `%e`, `%f`, and `%g` all follow the same rules for recognizing floating point numbers. If an ordinary character is included in the pattern matching string, it will be matched then discarded before proceeding to the next character. +## `rand` +```c +// `srand` creates a seed to use for rng +seed = srand(time(NULL)); +``` \ No newline at end of file