1111param (
1212# The X Radius of the arc.
1313[double ]
14- $RadiusX ,
14+ $RadiusX = $ ( Get-Random - Min -42 - Max 42 ) ,
1515
1616# The Y Radius of the arc.
1717[double ]
18- $RadiusY ,
18+ $RadiusY = $ ( Get-Random - Min -42 - Max 42 ) ,
1919
2020# The rotation along the x-axis.
2121[double ]
@@ -25,22 +25,26 @@ $Rotation = 0,
2525# If set to 0, will draw a small arc
2626[ValidateSet (0 , 1 , " Large" , " Small" , $true , $false )]
2727[PSObject ]
28- $IsLargeArc = 1 ,
28+ $IsLargeArc = $ ( 1 , 0 | Get-Random ) ,
2929
3030# By default, the arc will be drawn clockwise
3131# If this is set to 1, the arc will be drawn counterclockwise
3232# If set to 1, will draw an arc counterclockwise
3333[ValidateSet (0 , 1 , ' Clockwise' , ' CounterclockWise' , ' cw' , ' ccw' , $true , $false )]
3434[PSObject ]
35- $IsCounterClockwise = 0 ,
35+ $IsCounterClockwise = $ ( 1 , 0 | Get-Random ) ,
3636
3737# The deltaX
3838[double ]
39- $DeltaX ,
39+ $DeltaX = $ (
40+ (Get-Random - Min 42 - Max 84 ) * (1 , -1 | Get-Random )
41+ ),
4042
4143# The deltaY
4244[double ]
43- $DeltaY
45+ $DeltaY = $ (
46+ (Get-Random - Min 42 - Max 84 ) * (1 , -1 | Get-Random )
47+ )
4448)
4549
4650if ($DeltaX -or $DeltaY ) {
0 commit comments