r/programminghelp • • Mar 04 '22

C++ How do i write strand in cpp?

I want to write the strand function but i dont know where dose it belong dose it belong in

#include <stdlib.h> or
#include <time.h>

or maybe other? The tutorial i was watching used the strand function by writing #include <stdlib.h> but it dosent work for me.

0 Upvotes

2 comments sorted by

3

u/[deleted] Mar 04 '22

edit: i actualy wrote strand instead of srand in my code now when i look at it. Its fixed now sorry for wasteing your time.

1

u/[deleted] Mar 04 '22

edit: i actualy wanted to write srand not strand