<?xml version="1.0" encoding="utf-16"?><ClipboardData Version="1.0" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:p="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"><ClipboardData.Data><scg:List x:TypeArguments="x:Object" Capacity="1"><ui:InvokeCode ContinueOnError="{x:Null}" x:Name="__ReferenceID0" sap2010:Annotation.AnnotationText="iCollectCnt만큼 뽑아줌" Code="Dim randomGenerator As New Random()
RandomThreeList = OriginalList.OrderBy(Function(x) randomGenerator.Next()).Take(RequestNo).ToArray()" DisplayName="랜덤으로 뽑기 Invoke code" VirtualizedContainerService.HintSize="1436,196"><ui:InvokeCode.Arguments><p:InArgument x:TypeArguments="x:Int32" x:Key="RequestNo">[iCollectCnt]</p:InArgument><p:InOutArgument x:TypeArguments="s:String[]" x:Key="RandomThreeList">[arrRandomCard]</p:InOutArgument><p:InArgument x:TypeArguments="s:String[]" x:Key="OriginalList">[arrNormalCard]</p:InArgument></ui:InvokeCode.Arguments><WorkflowViewStateService.ViewState><scg:Dictionary x:TypeArguments="x:String, x:Object"><x:Boolean x:Key="IsPinned">True</x:Boolean><x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean></scg:Dictionary></WorkflowViewStateService.ViewState></ui:InvokeCode></scg:List></ClipboardData.Data><ClipboardData.Metadata><scg:List x:TypeArguments="x:Object" Capacity="4"><scg:List x:TypeArguments="x:Object" Capacity="4"><x:Reference>__ReferenceID0</x:Reference></scg:List></scg:List></ClipboardData.Metadata></ClipboardData>
그냥 숫자 하나를 Random으로 뽑으려면,
New Random().Next(min, max)
'RPA Uipath' 카테고리의 다른 글
[Uipath] UIFramework Init이 필요한 케이스 (1) | 2024.02.14 |
---|---|
[Uipath] 현재 페이지 URL 가져오기 (0) | 2023.11.17 |
[Uipath] Office 365 Secured SMTP 설정 (0) | 2023.10.06 |
[Uipath] Find children으로 UiElement의 속성값 가져오기 (0) | 2023.09.13 |
[Linq] 키 값 필터링 (0) | 2023.07.28 |