-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathGet-Magic8Ball.ps1
59 lines (54 loc) · 1.29 KB
/
Get-Magic8Ball.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
function Get-Magic8Ball {
<#
.SYNOPSIS
Get one of the answers from the magic 8 ball.
.DESCRIPTION
Get one of the answers from the magic 8 ball. The 20 possible answers are:
As I see it, yes.
Ask again later.
Better not tell you now.
Cannot predict now.
Concentrate and ask again.
Don't count on it.
It is certain.
It is decidedly so.
Most likely.
My reply is no.
My sources say no.
Outlook not so good.
Outlook good.
Reply hazy, try again.
Signs point to yes.
Very doubtful.
Without a doubt.
Yes.
Yes - definitely.
You may rely on it.
.EXAMPLE
Get-Magic8Ball
Reply hazy, try again.
#>
$Answer = @(
'As I see it, yes.',
'Ask again later.',
'Better not tell you now.',
'Cannot predict now.',
'Concentrate and ask again.',
"Don't count on it.",
'It is certain.',
'It is decidedly so.',
'Most likely.',
'My reply is no.',
'My sources say no.',
'Outlook not so good.',
'Outlook good.',
'Reply hazy, try again.',
'Signs point to yes.',
'Very doubtful.',
'Without a doubt.',
'Yes.',
'Yes - definitely.',
'You may rely on it.'
)
$Answer | Get-Random
}