DieHard Wolfers Forum Index DieHard Wolfers
A Wolfenstein 3d Fan Community


  Hosted by: MCS & Areyep.com - Designed by: BrotherTank

Original Yahoo Forum - Die Hard Archives

AReyeP HomepageAreyep Homepage DieHard Wolfenstein BunkerDieHard Wolfenstein Bunker Log inLog in RegisterRegister Banlist FAQFAQ Search ForumsSearch

  Username:    Password:      Remember me       

US_Rdnt
Page 1 of 1
DieHard Wolfers Forum Index -> SDL Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page BottomView Next Topic
Post new topicReply to topic
Author Message
fraggeur
DieHard Guard
DieHard Guard


Joined: 31 Dec 2012
Last Visit: 8:25 ago.

Topics: 11
Posts: 259

blank.gif

PostPosted: Sat Oct 22, 2016 6:09 am
   Subject: US_Rdnt
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

::: CODE :::
///////////////////////////////////////////////////////////////////////////
//
// US_InitRndT - Initializes the pseudo random number generator.
//      If randomize is true, the seed will be initialized depending on the
//      current time
//
///////////////////////////////////////////////////////////////////////////
void US_InitRndT(int randomize)
{
    if(randomize)
        rndindex = (SDL_GetTicks() >> 4) & 0xff;
    else
        rndindex = 0;
}

///////////////////////////////////////////////////////////////////////////
//
// US_RndT - Returns the next 8-bit pseudo random number
//
///////////////////////////////////////////////////////////////////////////
int US_RndT()
{
    rndindex = (rndindex+1)&0xff;
    return rndtable[rndindex];
}


Does US_Rdnt returns an integer between 0 and 255 or between 1 and 256?
AlumiuN
DieHard Wolfer
DieHard Wolfer


Joined: 29 Nov 2007
Last Visit: 2:02 ago.

Topics: 37
Posts: 2401
Location: Christchurch, New Zealand
newzealand.gif

PostPosted: Sat Oct 22, 2016 2:32 pm
   Subject: Re: US_Rdnt
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

0 and 255.
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> SDL Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page TopView Next Topic
Page 1 of 1
Jump to:  

Related topics
 Topics   Replies   Views   Last Post 
No new posts Announcement: Wolf3d & Spear of Destiny Shareware SDL Downloads
Author: BrotherTank
10 13131 Tue Aug 24, 2010 10:18 am
dcbasic View latest post
No new posts [Tutorial] Animating menu cursor & End Level BJ w/ 3+ fr
Author: Tricob
0 224 Wed Mar 30, 2011 6:47 pm
Tricob View latest post
No new posts [help] Three things & questions
Author: RichterBelmont12
54 4666 Sat Mar 12, 2011 8:56 pm
gerolf View latest post
No new posts [HELP] Gun bobbing, directional sprites, & adding new we
Author: gerolf
2 509 Sun Mar 06, 2011 8:05 pm
gerolf View latest post
No new posts Mathew's Questions about SDL & Wolf3d
Author: Matthew
45 3727 Fri Mar 13, 2009 11:43 am
TexZK View latest post
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
   You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright ©2003-2008 DieHard Wolfers
A Modified subBunker Theme by BrotherTank
Powered by phpBB © 2001, 2005 phpBB Group