FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Further extend the random module by namannimmo10 · Pull Request #235 · lcompilers/lpython · GitHub

Further extend the random module - #235

Merged
namannimmo10 merged 8 commits into
lcompilers:mainfrom
namannimmo10:random
Mar 23, 2022
Merged

namannimmo10 merged 8 commits into
lcompilers:mainfrom
namannimmo10:random

Conversation

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/runtime/random.py
Comment thread src/runtime/random.py
Comment thread src/runtime/random.py
Comment thread src/runtime/random.py Outdated

certik commented Mar 15, 2022

Copy link
Copy Markdown
Contributor

I noticed the random_float must return f32, not f64:

LFORTRAN_API float _lfortran_random_float()
{                                             
    return ((float) rand() / (float) RAND_MAX);
}                                        

Comment thread src/runtime/random.py Outdated
Comment thread src/runtime/random.py Outdated

certik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This looks good otherwise.

namannimmo10 enabled auto-merge March 23, 2022 17:48
namannimmo10 merged commit 67c1bd3 into lcompilers:main Mar 23, 2022
namannimmo10 deleted the random branch March 23, 2022 18:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL