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.
- Host: GitHub
- URL: https://github.com/f0xb17/randomselectionkit
- Owner: f0xb17
- License: bsd-3-clause
- Created: 2025-01-03T07:57:20.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-03T09:08:32.000Z (5 months ago)
- Last Synced: 2025-01-03T09:20:26.741Z (5 months ago)
- Topics: arch, linux, macos, random, simple, swift, windows
- Language: Swift
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```