How can I create a random number?

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
-DaRealXecon-
Posts: 31
Joined: Wed Jul 09, 2008 7:50 am

How can I create a random number?

Post by -DaRealXecon- »

Hi,

How can I create random number between 1 and 5?
without commerce awls
Also 1 - 2 - 3 - 4 - 5 ;-)

Thanks in advance! :)
User avatar
Jim
Posts: 476
Joined: Sat Jul 02, 2005 10:06 pm
Location: Sydney
Contact:

Post by Jim »

Not really a PS2 dev question.

http://c-faq.com/lib/rand.html

Jim
-DaRealXecon-
Posts: 31
Joined: Wed Jul 09, 2008 7:50 am

Post by -DaRealXecon- »

ohh... shi? :( yes... it was a PSP question :( Sorry...
LBGSHI
Posts: 136
Joined: Mon Aug 07, 2006 5:56 am
Contact:

Post by LBGSHI »

More importantly, he was explaining that this is a C programming question, not a console-specific question.

The link he provided is quite useful, I should say.
I may be lazy, but I can...zzzZZZzzzZZZzzz...
jareth256
Posts: 2
Joined: Sat Oct 11, 2008 10:43 pm

Post by jareth256 »

Post Reply