DIGIT-ARC read-only archive · snapshot: July 23, 2026

Problem with C++

3 posts · originally from https://geek.digit.in/community/threads/problem-with-c.100384/

A
aashish473 Original post #1
Oct 22, 2008 at 7:29 PM
How do I use something called as randomize function?
swatkat
swatkat #2
Oct 22, 2008 at 8:57 PM
There is no randomize function C++. Here, you can use srand() and rand() functions. See this link:
*www.cplusplus.com/reference/clibrary/cstdlib/rand.html
dheeraj_kumar
Oct 23, 2008 at 6:44 AM
^^+1

Yep, Randomize is only used in VB, VBA and VBS, to initialize Rnd's seed value.