Generates random data directly in Atom using the excellent Chance library written by Victor Quinn. All supported random data types are directly accessible from the command palette, Ctrl-Shift-P, and from the
Random menu. If you are commonly using a particular data type then you can also bind it in your keymap.
Each random data type can be accessed from the command palette by pressing Ctrl-Shift-P then by typing
Random followed by the data type, however if you are using a particular data type frequently you might want to bind keyboard shortcut to save you time.
Fortunately Atom makes this incredibly easy, simply go to
Keymap... and scroll to the bottom of the
keymap.cson file that opens. Paste the following at the bottom of the file:
'atom-text-editor': 'ctrl-alt-shift-g': 'random:guid'
This will map the key press Ctrl-Alt-Shift-G to generate a new random GUID. You can select any random data type from the list below.
This package is entirely based around the superb Chance library written by Victor Quinn, by default this library uses a Mersenne Twister to generate a pseudo-random seed which is used for all subsequent random data generation. If you want to use an external random data source you simply call the
Reseed command from the Atom Command Palette this will make a call out to Random.org's Integer Generator to reseed the random number generator.
© 2016 Richard Slater Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.