#717 closed enhancement (fixed)
Add new OmegaScript commands to support random numbers
| Reported by: | Nirmal Singhania | Owned by: | Tanmay Sachan |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0.0 |
| Component: | Omega | Version: | 1.3.4 |
| Severity: | normal | Keywords: | Omega, Random Numbers |
| Cc: | Blocked By: | ||
| Blocking: | Operating System: | All |
Description
$srandom{$now}$random{100} would seed the random number generator with the current time and then return a random real number >= 0 and < 100.
Change History (4)
comment:1 by , 10 years ago
| Status: | new → assigned |
|---|
comment:2 by , 7 years ago
| Owner: | changed from to |
|---|---|
| Status: | assigned → new |
comment:3 by , 7 years ago
| Milestone: | → 1.5.0 |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Implemented on git master by 1c25347edb6c76e9659fd882ddcd6f4174026ed7 with 2e6bbee7390143f61d9925e586b1351bf20f7c7d to adjust the testcase to be more efficient and 045d44fda818afed431c6c69e3e1a935953f212e to use false/true not 0/1 for bool literals.
The motivation for this was to allow things like A/B testing for mining relevance judgements, so it's really a building block for future work - I don't think there's a strong motivation to backport this to 1.4.x at this point.