Jump to content
Search Community

Math.random inside GSAP

Flashdesigner test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

As we had some issues with Google not accepting Math.random inside banner scripts, I was wondering if GSAP is implementing this function, for example in RoughEase? Currently I am using my own pseudo random workaround by looping through a large array prefilled with random numbers between 0-1.

Link to comment
Share on other sites

Hey Flashdesigner, welcome to the forums and thanks for being a Shockingly Green member! We couldn't do what we do without people like you.

 

You can check what GSAP uses (including Math.random) by searching through the code on GitHub. The only parts not on publicly available on GitHub are the club member only parts. A search there shows that GSAP does use Math.random. What issues are you worried about related to Math.random? Is there an article that you're thinking of? 

 

GSAP is hosted on Google's own CDN (and often isn't even counted against you in your kb total) so it shouldn't have any issue being in banner scripts.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...