Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

RenJS

HTML5 Visual Novel creation made easy and free · By lunafromthemoon

Random Number Generation

A topic by spritewrench created Aug 24, 2018 Views: 278 Replies: 2
Viewing posts 1 to 3

Hey!
Any direction and/or plans in place for integrating random number generation?

Developer

Hello, in what way would you need the integration? If you just need a random number in a variable, you can still use any kind of javascript code to fill it in, including random number generation. Check this little example:

  - var rand: "Math.floor(Math.random()*10)"
  - text: "A random number {rand}"

This would generate a random number between 0 and 10, and put it in the variable called rand.

Hope to see your creations!

This is exactly what I was looking for!
Thanks!