Update text in a list with button?

I'm trying to make an iPhone app. On the first screen there is an item in a list which is "Show me a random number." I tap it and I'm taken to the second screen and on that screen it has the item and the answer. Like this.....

Show me a random number.
5

And then what I want to do is tap on that second "Show me a random number." and show another random number below it. Like this....

Show me a random number.
10

But how do I do this exactly? I've made the second "Show me a random number." a button. But then I don't know how to update the number. Here's my code....

import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
List {
Group {
NavigationLink(destination:Item1())
{Text ("Show me a random number.")}
}}
.font(.system(size: 18, weight: .semibold, design: .default))
.foregroundColor(.blue)
.textCase (nil)
.navigationTitle("My App")
.navigationBarTitleDisplayMode(.inline)
}}}

struct Item1: View {
var body: some View {
List {
Button(action: {
print("Button tapped.")
},
label: {
Text("Show me a random number.")
.font(.system(size: 18, weight: .semibold, design: .default))
let myrandom = Int.random(in: 1..<11)
Text(String(describing: myrandom))
.font(.system(size: 18, weight: .regular, design: .default))
})}}}

So if anyone can help me that would be great. Thanks!

I've spent all day trying to solve my button problem. And during this process I've unfortunately come across another problem. Here's the code that I've managed to create so far.....

import SwiftUI

struct myprops: Identifiable {
let id: Int
let name: String
}

struct ContentView: View {
@State var thelist = [
myprops(id:0, name: "Item 1"),
myprops(id:1, name: "Item 2")
]

	var body: some View {
		NavigationView {
			List(thelist) {ano in
			NavigationLink(destination:Item1())
			{Text (ano.name)}
			}
		}
		.navigationTitle("My App")
	}
}

My problem is how do I get Item 1 to show the 1st view. And how do I get Item 2 to show the 2nd view? I'm pretty sure I need a For Each loop (and add another paramater to the navigation link?) but I still can't work it out. So can anyone help me solve this?

Thank you!

I'd recommend to watch a few introduction SwiftUI videos from WWDC, and/or review a few tutorials from Apple or others. This forum is for questions about the Swift language itself, questions about SwiftUI / UIKit are better suited for Apple dev forums or stackoverflow.