Function: | rand |
---|---|

Prototype: | int rand() |

Description: | Generates and returns the next pseudo-random number |

Returns: | |

int | The created value |

Function: | srand |
---|---|

Prototype: | void srand( int seed ) |

Description: | Sets the seed for the pseudo-random number generator. This value will be the first one obtained on next calls to rand(). For a same seed the sequence of values obtained will be the same |

Arguments: | |

int seed | The new seed to use. Cannot be zero (int that case it is ignored) |