Run details:
Mozilla/5.0 (Android 10; Mobile; rv:109.0) Gecko/112.0 Firefox/112.0
Firefox Mobile 112
Android
Mobile
one year ago
Test name Executions per second
Math.random() 563408896.0 Ops/sec
crypto.getRandomValues() 785894.2 Ops/sec
Math.floor(Math.random()) 506487424.0 Ops/sec
Tests:
  • Math.random()

  • crypto.getRandomValues()

  • Math.floor(Math.random())