Skip to content

{{$randomInt}} returns unexpected large numbers — doesn't match documented range (0–1000) #4847

@junglesub

Description

@junglesub

I have checked the following:

  • I have searched existing issues and found nothing related to my issue.

This bug is:

  • making Bruno unusable for me
  • slowing me down but I'm able to continue working
  • annoying
  • this feature was working in a previous version but is broken in the current release.

Bruno version

2.3.0

Operating System

macOS 15.4

Describe the bug

According to the Bruno documentation, the {{$randomInt}} dynamic variable should return a random integer between 0 and 100.

However, in actual usage, it currently returns much larger numbers — e.g., values like 8759790902117042.
After checking the source, it looks like this behavior comes from Faker.js, which uses Number.MAX_SAFE_INTEGER as the default upper limit.

This behavior is inconsistent with the documentation and may be confusing to users expecting a 0–100 range.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

Image

Related Issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions