Skip to content

Commit

Permalink
Stable Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Aro1914 committed Mar 25, 2022
1 parent 2bb4708 commit 613a1f9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
1 change: 0 additions & 1 deletion .d.ts

This file was deleted.

26 changes: 21 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@

## Contents

- [Description](#description)
-
- [Gen-RandInt-Array](#gen-randint-array)
- [Contents](#contents)
- [Description](#description)
- [Usage](#usage)
- [Client-side and Server-side](#client-side-and-server-side)
- [Requirements](#requirements)
- [Contributors](#contributors)
- [Contributing](#contributing)
- [License](#license)

## Description

Gen-RandInt-Array is a helper function to help you generate an array with a length of your choice and given the min and max range as negPos
Gen-RandInt-Array is a helper function to help you generate an array with a length of your choice and given the min and max range as ±negPos

Compatible with both client-side and server-side environments.

Expand Down Expand Up @@ -39,13 +46,22 @@ import genRandIntArray from 'gen-randint-array';
const array = genRandIntArray(10, 10); //
```

## Requirements

The Gen-RandInt-Array helper function has zero dependencies.

## Contributors

<a href = "https://github.com/Aro1914/Gen-RandInt-Array/graphs/contributors">
<img src = "https://contrib.rocks/image?repo = Aro1914/Gen-RandInt-Array"/>
</a>

Made with [contributors-img](https://contrib.rocks).

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License

The Gen-RandInt-Array Project is released under the [Apache License](http://www.apache.org/licenses/).

The Gen-RandInt-Array Project is released under the [Apache License](http://www.apache.org/licenses/).
2 changes: 1 addition & 1 deletion genRandIntArray.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ def genRandIntArray(size, neg_pos):
return randomArray
# Please note that this takes considerable amount of runtime for large arrays (usually few seconds)
# To verify the output data in the array uncomment and run the line below
# print(genRandIntArray(1000000,1000000)) # This will create an array 1 million indices big and fill it with whole numbers given the minimum possible and maximum possible values as -1000000 and 1000000 respectively
# print(genRandIntArray(1000000,1000000)) # This will create an array 1 million indices big and fill it with whole numbers given the minimum possible and maximum possible values as ±1000000

0 comments on commit 613a1f9

Please sign in to comment.