Extern Crate rand error
https://repl.it/@AmirahH/CrispDramaticWearables
My program presents both players with 5 questions each. The question shows four possible answers and tally points for each player. The program also includes a Question type with accessors, mutators and an array that holds the 10 question objects.
The error message is from the random method from the extern crate rand.
unresolved name rand::random [E0425]
Voters
John_WardWard (318)
@AmirahH My advice is to go join the discord server, and then ask someone on there, as I have zero knowledge of Rust and you are likely to find much more experienced coders on the server.
AmirahH (0)
@John_WardWard Thank you
I do not know rust, but I can tell you that in python, the module is named random and the function randint. Maybe you switch random with rand? The error shows
Sorry if I am incorrect, I have never coded in this language.