function Random-Number()
{
$randays=Get-Random -Minimum -0 -Maximum 200
$Date = (Get-Date).AddDays(-$randays).ToString('MM/dd/yyyy')
$SettleDate=(Get-Date).AddDays(-$randays+2).ToString('MM/dd/yyyy')
return $Date $SettleDate
try
{Write-Host $Date $SettleDate}
catch
{Write-Error $_.Exception.Message
throw "Unable to generate : $Date & $SettleDate"}
}
the above code giving me the following two error
Unexpected token 'SettleDate' in expression or statement.
Missing function body in function declaration.
What I am doing wrong here