0.0
No commit activity in last 3 years
No release in over 3 years
A simple scrambler for strings, integers, floats and arrays. Number of scrambles can be specified.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

simplescrambler

Scrambles integers, floats, strings and arrays a specified amount of times.

Installation

Type in gem install simplescrambler inside your command line or terminal.

Usage

Type in require 'simplescrambler' at the top of your script. NOTE make sure that the gem is installed and that you are at the root directory simplescrambler is now ready to use! To scramble any integers, floats, strings or arrays, type .scramble after it. E.g. [1, 2, "hello"].scramble

Fields (Optional)

To specify how many digits/letters/elements are to be shifted (default: min = 10, max = 100), type in the minimum and maximum numbers like so: .scramble((min), (max)) E.g 0.3235.scramble(1, 100)

Example

require 'simplescrambler'
puts [1, 2, "hello"].scramble
=> [2, "hello", 1]