Search found 3 matches

by Redbluefire
Fri Aug 05, 2005 3:28 am
Forum: PSP Development
Topic: Random Integer Generation
Replies: 25
Views: 14450

Thanks to all of you, especially cwbowron and cyberbill, i got it working and it can be found here: http://www.uploadhut.com/upload/242248.zip?? the code used is: int Rando(int min, int max) { srand(sceKernelLibcTime(NULL)); int Diff = max - m...
by Redbluefire
Thu Aug 04, 2005 8:07 am
Forum: PSP Development
Topic: Random Integer Generation
Replies: 25
Views: 14450

Thanks for all the help guys, but theres one flaw in the code, which is why i came to ask: This was my code from help with cyberbill, it always returned 66: int Rando(int min, int max) { int Diff = max - min; return (rand() % Diff)+min; &#...
by Redbluefire
Thu Aug 04, 2005 6:12 am
Forum: PSP Development
Topic: Random Integer Generation
Replies: 25
Views: 14450

Random Integer Generation

Im going to get straight to the point, Generating a random Integer between one and one hundred has been hell on me, its hard enough to generate an integer between two set integers in normal C++, would anyone mind helping (See: Spoonfeeding) Me with this? Thanks.





-Rbf