C++ code translation to c# : Randomizer
Hi all,
I would like to translate the following c++ code lines to c#
:
uint32 v;
int max_array = SCREEN_WIDTH * SCREEN_HEIGHT;
v = (int)(max_array * (rand()/RAND_MAX+1.0)));
all ideas are welcome. thanks a lot in advance.
br
alex

itaym0266 reputationPosted Oct 11, 2004, 12:20 PM EDT
Carlos SanchezRank #6,113 · 276 reputationPosted Oct 11, 2004, 12:27 PM EDT
bilnaadRank #2,169 · 655 reputationPosted Oct 11, 2004, 12:38 PM EDT
r.alex3 reputationPosted Oct 13, 2004, 10:13 AM EDT