An open API service indexing awesome lists of open source software.

https://github.com/f0xb17/randomselectionkit

A simple script to output a random value from a file.
https://github.com/f0xb17/randomselectionkit

arch linux macos random simple swift windows

Last synced: 3 months ago
JSON representation

A simple script to output a random value from a file.

Awesome Lists containing this project

README

        

# RandomSelectionKit

## 1 Introduction
This is intended to provide a simple script that can return a random value from a data structure provided for this purpose.

## 2 Dependencies
1. Swift Language (https://www.swift.org/install/linux)

```shell
$ yay -S --needed --noconfirm swift-bin
```

## 3 Compile

To compile the code, run the following:

```shell
$ gh repo clone f0xb17/RandomSelectionKit
$ cd RandomSelectionKit
$ swift run
```

## 3.1 Build

To create an executable file, run the following:

```shell
$ gh repo clone f0xb17/RandomSelectionKit
$ cd RandomSelectionKit
$ swift build
```

When you build a package, the executable will be pushed to:

```shell
$ cd .build/debug
$ ./RandomSelectionKit
```

## 3.1.1 Tests

To test the code, run the following.

```shell
$ gh repo clone f0xb17/RandomSelectionKit
$ cd RandomSelectionKit
$ swift test
```