Thanks again!
this time I have the oddly named file, but the database search is still in the wrong directory.
cabal install --lib --package-env . random
cabal install --lib --package-env . random
Process started (PID=6368) >>>
Resolving dependencies…
Up to date
<<< Process finished (PID=6368). (Exit code 0)
================ READY ================
dir
DIR: *
.ghc.environment.x86_64-mingw32-8.10.1
cabal.bat
installation.txt
random2.hs
================ READY ================
GHCi
GHCi
Process started (PID=1428) >>>
GHCi, version 8.10.1: https://www.haskell.org/ghc/ :? for help
Loaded package environment from C:\Users\Public\EssaiHaskell.ghc.environment.x86_64-mingw32-8.10.1
ghc.exe: can’t find a package database at C:\Users\Jean-François.Asus\AppData\Roaming\cabal\store\ghc-8.10.1\package.db
<<< Process finished (PID=1428). (Exit code 1)
Thanks for your help