cvs.gedasymbols.org/archives/browse.cgi | search |
From: | stewilcox AT slicksoft DOT demon DOT co DOT uk (steve wilcox) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | not so random numbers |
Date: | Mon, 24 Feb 1997 04:47:27 GMT |
Organization: | slicksoft |
Message-ID: | <856730848.1887.0@slicksoft.demon.co.uk> |
NNTP-Posting-Host: | slicksoft.demon.co.uk |
Lines: | 10 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
hi im having probs creating random numbers in djgpp i have made a define like so : #define randomize() srand((unsigned)time(NULL)) and im my code i call randomize() first but i still dont get random numbers using x = random()%100; anyone know whats wrong ?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |