rust error: unused manifest key: package.rand

Newbie error..

I kept getting an error : unused manifest key: package.rand even though I included the following: rand = “0.8.3”

My error was the location of where I added rand = “0.8.3”. I added in the [package] section and it didn’t recognize it. I moved to dependencies section and all was well.

[package]
name = "guessing_game"
version = "0.1.0"
edition = "2021"


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rand = "0.8.3"