Codeunit 130440 Library - Random

Application Test Library

Source AL, 119 lines

src/Layers/W1/Tests/ApplicationTestLibrary/LibraryRandom.Codeunit.allines 4 to 19 of 119, Copyright (c) Microsoft Corporation. MIT

codeunit 130440 "Library - Random"{    SingleInstance = true;    trigger OnRun()    begin    end;    var        Seed: Integer;        SeedSet: Boolean;    procedure RandDec(Range: Integer; Decimals: Integer): Decimal    begin        exit(RandInt(Range * Power(10, Decimals)) / Power(10, Decimals));

All 119 lines

Public procedures 12 in 29

RandDec(Range: Integer; Decimals: Integer): Decimalnew in 28
RandDecInRange(Min: Integer; Max: Integer; Decimals: Integer): Decimalnew in 28
RandDecInDecimalRange(Min: Decimal; Max: Decimal; Precision: Integer): Decimalnew in 28
RandInt(Range: Integer): Integernew in 28
RandIntInRange(Min: Integer; Max: Integer): Integernew in 28
RandDate(Delta: Integer): Datenew in 28

All 12 procedures