memory access violation

Blitz3D Forums/Blitz3D Programming/memory access violation

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The parameter in the Rand() comand is the highest possible value the Rand function will return. You add 1 to Rand(9) giving you numbers in the range of 2 - 10 and you are using the result to access an array that has been dimentioned with elements 0 - 9. Replace the 9 with 8 in your Rand statements should fix your problem.