I am trying to create a program that returns a specific codes within my if statement.

Score below 70: display the score in h1 tag and display in h2 tag their grade: D

Score between 70-80: display the score in h1 tag and display in h2 tag their grade: C

Score between 80-90: display the score in h1 tag and display in h2 tag their grade: B; 

if someone got 80, give them a B
Score between 90-100: display the score in h1 tag and display in h2 tag their grade: A;

if someone got 90, give them an A
For example, the output of your code would be something like below:

here's my codes:

```
function random(){
    $number = rand(50,100);
    echo "<h1> Your Score: {$number}/100 </h1>"; 

    if($number>70){
        echo "<h2>Your Grade is D</h2>";
    }else if($number=(range(70, 80))){
        echo "<h2>Your Grade is C</h2>";
    }else if($number=(range(80, 90))){
        echo "<h2>Your Grade is B</h2>";
    }else if($number==80){
        echo "<h2>Your Grade is B</h2>";
    }else if($number=(range(90, 100))){
        echo "<h2>Your Grade is A</h2>";
    }

}

$score = random();
echo $score; 

```

Currently it is not showing up the correct grades and text. Any idea?