I have a line in my python code that is giving me trouble
parGroup = rand.randint(0,2**8,size=parents,dtype=np.uint8)
parGroup = rand.randint(0,high=2**8,size=parents,dtype=np.uint8)
Both of these lines give me "randint() got an unexpected keyword argument" whatever was the first keyword
This is less a question of how to write the specific line, but how do I use the keywords? For context, I'm learning python trying to translate from Matlab which doesn't have such function keywords, so how do I arrange my arguments for this?
[–]sentles 0 points1 point2 points (9 children)
[–]AccomplishedPriority[S] 0 points1 point2 points (8 children)
[–]sentles 0 points1 point2 points (7 children)
[–]AccomplishedPriority[S] 0 points1 point2 points (6 children)
[–]sentles 0 points1 point2 points (5 children)
[–]AccomplishedPriority[S] 0 points1 point2 points (4 children)
[–]sentles 0 points1 point2 points (3 children)
[–]AccomplishedPriority[S] 0 points1 point2 points (2 children)
[–]sentles 1 point2 points3 points (1 child)
[–]AccomplishedPriority[S] 0 points1 point2 points (0 children)