Subject: SDL-News: random number generating
From: Yang LIU (lyly97#mails.tsinghua.edu.cn)
Date: Thu Aug 28 2003 - 08:03:47 GMT
Become an SDL Forum Society member <http://www.sdl-forum.org/Society/members.htm>
The originator of this message is responsible for its content.
-----From "Yang LIU" <lyly97#mails.tsinghua.edu.cn> to sdlnews -----
Hi members,
I need a random integer number generated betweem 0 and Var in SDL, where Var is
the integer variable. I know use the ANY can generate a random, but in this
method, the range is predefined. My range is defined by variable, and I can't
apply any float operation as the embedded processor doesn't support it, Is there a
easy way to generate integer random to meet my request?
thanks a lot.
Best Regards,
Yang Liu
--End text from "Yang LIU" <lyly97#mails.tsinghua.edu.cn> to sdlnews ---
For extra SDL Forum Society benefits join at <http://www.sdl-forum.org/Society/members.htm>
This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT