Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

var random = new Random.Random() does not work when random-js is imported as a script #59

Open
atbenmurray opened this issue May 18, 2022 · 1 comment · May be fixed by #65
Open

var random = new Random.Random() does not work when random-js is imported as a script #59

atbenmurray opened this issue May 18, 2022 · 1 comment · May be fixed by #65

Comments

@atbenmurray
Copy link

Thanks for this library, I'm unfortunately struggling to make use of it in script form, as indicated by the documentation.

Code snippet as follows:

  <script src="https://cdnjs.cloudflare.com/ajax/libs/random-js/1.0.8/random.min.js""></script>
  <script>
    var random = new Random.Random();
  </script>

This gives the following response:

Uncaught TypeError: Random.Random is not a constructor

Please could you advise on how to use the library in the above circumstance?

@rawr51919 rawr51919 linked a pull request Sep 16, 2023 that will close this issue
12 tasks
@rawr51919
Copy link

as of PR #65 the above will function as it should, still a WIP PR as of yet though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants