|
||||||
| Perl Discussion for the PERL language - Practical Extraction and Reporting Language, is a programming language often used for creating CGI programs. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||
|
I am just sort of guessing here since I did not take much time to look at the code and understand what it's doing.
When you call rand() without any argument it uses the number 1, so essentially you are getting a return value of 0.nnnnnnnnn each time you use rand. Try replacing each instances of rand() with something like "int rand(500)" or whatever value is appropriate instead of 500. |
|
|||
|
Hi there! I am working on a very similar project, trying to create random maps using visual basic (I do it with a very slow and inneficient proccess using drawn pixels one by one). I would like to discuss with you, feel free to drop an email (I am not a regular user of CodeCall)
devant86 at hotmail dot com |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Generating Random Numbers with PHP | Paradine | PHP Tutorials | 4 | 08-27-2007 07:09 PM |
| Return random numbers without duplicates | Paradine | PHP Tutorials | 0 | 08-26-2007 02:07 PM |
| How do I program a random generator? | eddiewillers | General Programming | 4 | 07-24-2007 02:26 PM |
| Code:PHP Random Functions | John | PHP Tutorials | 2 | 12-03-2006 10:04 AM |
| I need to generate a random number in PHP | dirkfirst | PHP Forum | 7 | 07-05-2006 09:58 PM |
| Xav | ........ | 1024.41 |
| MeTh0Dz|Reb0rn | ........ | 974.08 |
| morefood2001 | ........ | 850.04 |
| John | ........ | 841.93 |
| WingedPanther | ........ | 661.52 |
| marwex89 | ........ | 575.59 |
| Brandon W | ........ | 456.18 |
| chili5 | ........ | 292.12 |
| orjan | ........ | 187.41 |
| Steve.L | ........ | 181.88 |
Goal: 100,000 Posts
Complete: 79%