Function Reference rand()
rand()Prototype: int rand();
Header File: stdlib.h (C) or cstdlib (C++)
Explanation: rand returns a value between(inclusive) 0 and and RAND_MAX (defined by the compiler, often 32767). To get a more mangeale number, simply use the % operator, which returns the remainder of division.
ليست هناك تعليقات:
إرسال تعليق