This question shows research effort; it is useful and clear
1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
このコードを再度実行すると、前回の実行と同じ乱数が得られるのはなぜですか。
local weightsOutput = {}
for i=0, 2 do --initialize random weights
weightsOutput[i] = string.format("%0.4f",(2*math.random())-1)
print(weightsOutput[i])
end