I have a project that I wish to port to Q7B but it relies on the VB Randomize and Rnd pseudo-number generator method.
The project uses a number between -32768 and 32767 as an argument for Randomize() and this is used to seed the Rnd therefore giving a repeatable sequence for Rnd between 0 and 1. Looking at the Q7B Randomize and Random methods they appear to work differently with Randomize using the system time only - no argument is allowed. However it looks like qsrand and qrand may do what VB does - indications are that the same qsrand argument used as a seed for qrand will produce a repeatable sequence and qrand can be set for 0-1 range.
Question is - is it possible to access these two methods from Q7B - my knowledge of C++ is sketchy - in fact I don't even have the pencil!
Cheers,
Blane