Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
randn not working - Modular
M
Modular
•
3y ago
•
1 reply
chris_DataScience
randn not working
I am trying to use rand and randn functionality from the Mojo library
https://docs.modular.com/mojo/stdlib/random/random.html#randn
rand works fine
, but when trying to import randn I get
:
error
: package
'random
' does not contain
'randn
'
(e
.g
.
"from random import rand
, randn
" does not work
)
Any ideas how to fix that or what I did wrong
?
Modular Docs - random
Module
Modular
Join
This server is the home of the MAX and Mojo community! Join us to chat about all things Modular.
20,199
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
%%python not working
M
Modular / questions
3y ago
GRAPH API MOTensor not working
M
Modular / questions
2y ago
My code is not working
M
Modular / questions
3y ago
Intellicense not working in Vscode
M
Modular / questions
3y ago