Error: no generic parameters allowed for store
Is the error I'm getting when trying to assign a variable in an array. I'm not really sure what i'm doing wrong here, I'm a bit of a beginner programmer and any help is appreciated
import math
proc roll_count() =
var value : int = 5345
var num : int
var store = array[0..5, int]
for i in 0..value:
randomize()
num = random(6)
store[num-1] += 1
echo("Roll Count: ", value)
for i in 0..5:
echo(i+1, ": ", store[i]/value*100, "%")
roll_count()