SDL-News: random number generating

Subject: SDL-News: random number generating
From: Yang LIU (
Date: Thu Aug 28 2003 - 08:03:47 GMT

Become an SDL Forum Society member <>
The originator of this message is responsible for its content.
-----From "Yang LIU" <> 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" <> to sdlnews ---
For extra SDL Forum Society benefits join at <>

This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT