random number #1095
Closed
Jaap1957
started this conversation in
Programming
random number
#1095
Replies: 1 comment 2 replies
-
This line inserted in tutor7pp.cpp. compiles with egsnrc_GUI:
I just guessed rndm-> would associate to functions in egs_rndm.h
this construction prevents a (0,0,0) outcome. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am working with an e- sensor. The e- beam (electron microscope) deposition is nicely calculated. Eenrgy is converted to e-h pairs at ~3.6eV per pair. I want to follow the paors.
For that i need a random direction generator. It seems
EGS_Vector x = inside_shape->getRandomPoint(rndm);
( line 273, HEN_HOUSE\egs++\egs_geometry_tester.cpp )
would suit the purpose.
How do I, can I, use this function in a top CPP application. f..e tutor7pp ?
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions