generate a random integer
Generate a random integer
Return a random integer.
Pick a cryptographically-random integer within a range.
Produce a random integer based on weights
Generate a random integer
get a cryptographically random integer within a range
Generate a random integer in Javascript (ES6), within a given range.
Give me a random integer from [0|1] to n
Generate a random integer
[Deprecated] Generates a random integer within a range
Random Integer package provides functionality to generate a random integer value.
Generates a random Integer between a desired range
2 functions: one gives you 1 random integer within a chosen range, the other gives you many.
A small TypeScript/Node.js utility that generates a cryptographically secure random integer with a specific digit length.
Generates a random integer.
Produces an integer between two values
Generate random integer
Returns a random integer within the given bounds.
Get a random integer number quickly
Generate a random integer with Chance.js.
Fastest random ID and random string generation for Node.js
Random integer generator
Get a random integer number within a range, between two numbers min and max.
Random integer
Randum creates random strings or integers of a specified length.
Generate secure 64-bit integers using the same approach used by UUIDs.
generate random numbers that sum up to a given integer
A generator of random numbers. Implemented as a built-in Integer class' method. Generates an array of specified quantity of random numbers. Generated numbers may repeat or may not repeat - it is configurable. You can set a range of numbers from which to generate by defining the beggining and the end of the range. Ruby's Random class is used as generator. Tested.
Convert Integer ID or UUID String to/from Base58 String; Generate random Base58 String
Pseudo-random permutation of arbitrary size integers.
Returns a random integer from 1 to infinity. Half the time it returns 1. Each succesive integer is half the probability of the previous.
MegaLotto is a gem which draws an array of 5 random integers between 0 to 60(excluding).
Miscellaneous methods that may or may not be useful. sh:: Safely pass untrusted parameters to sh scripts. Raise an exception if the script returns a non-zero value. fork_and_check:: Run a block in a forked process and raise an exception if the process returns a non-zero value. do_and_exit, do_and_exit!:: Run a block. If the block does not run exit!, a successful exec or equivalent, run exit(1) or exit!(1) ourselves. Useful to make sure a forked block either runs a successful exec or dies. Any exceptions from the block are printed to standard error. overwrite:: Safely replace a file. Writes to a temporary file and then moves it over the old file. tempname_for:: Generates an unique temporary path based on a filename. The generated filename resides in the same directory as the original one. try_n_times:: Retries a block of code until it succeeds or a maximum number of attempts (default 10) is exceeded. Exception#to_formatted_string:: Return a string that looks like how Ruby would dump an uncaught exception. IO#best_datasync:: Try fdatasync, falling back to fsync, falling back to flush. Random#exp:: Return a random integer 0 ≤ n < 2^argument (using SecureRandom). Random#float:: Return a random float 0.0 ≤ n < argument (using SecureRandom). Random#int:: Return a random integer 0 ≤ n < argument (using SecureRandom). Password:: A small wrapper for String#crypt that does secure salt generation and easy password verification.
A very simple gem that adds some methods to some Ruby standard classes, e.g. <array>.include_any?, <array>.delete_random, etc. Simply require the gem ( require "more_ruby" ) and the additional methods will be available. # New instance methods # ## Array :all_instance_of?, :all_kind_of?, :av, :delete_random, :include_any?, :insert_flat, :mean, :modulo_fetch, :peach, :random, :random_index, :random_insert, :random_move, :stringify_all_values_deep, :sum, :wrap_fetch ## Float :format_with_thousands_delimiter, :signif ## Hash :all_keys, :all_values, :delete_random, :peach, :random_key, :random_pair, :random_value, :remove_empty_fields, :sort_deep, :stringify_all_values_deep, :strip_hash_of_keys, :to_a_deep, :to_xml ## Integer :digit_count, :format_with_thousands_delimiter, :num_to_letter, :signif ## NilClass :empty? ## Numeric :format_with_thousands_delimiter ## String :append, :camelcase, :camelcase_to_snakecase, :capitalize_all, :capitalize_first_letter_only, :escape, :escape_whitespace, :extract_values_from_xml_string, :formatted_number, :index_of_last_capital, :invert_case, :is_hex?, :is_integer?, :join, :pascalcase, :prefix_lines, :random_case, :snakecase, :snakecase_and_downcase, :to_bool, :unindent ## Time :is_after?, :is_before?, :is_within?, :remove_subseconds # New singleton methods # ## FalseClass :maybe?, :random ## File :basename_no_ext ## TrueClass :maybe?, :random
BASIC INSTRUCTIONS This gem funds and defunds your projects at random via die roll. The final list of projects is then exported to your current directory after the program has finished ('quit' to exit). TO RUN DEFAULT CSV SHEET (Three example projects))): crowdfund TO RUN A CSV FILE FROM YOUR CURRENT DIRECTORY: crowdfund your_file_name.csv NOTE: All CSV files must be formatted appropriately with: No header or other text at the top! Column 1: lists all project titles in plain text. Column 2: lists integer values for initial project funding amounts (A blank field by default initializes a project with $0 in funding.) Column 3: lists integer values for the project's target goal in funding (A blank field by default initializes a project with $10,000 in funding.)
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.